mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T369, font setting improvements
- color can be hidden - access to QFont value/getter for family/style/size - renaming
This commit is contained in:
@@ -19,6 +19,7 @@ namespace BlackGui
|
||||
ui(new Ui::CSettingsFontDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
ui->comp_FontSettings->setMode(CSettingsFontComponent::GenerateQssOnly);
|
||||
|
||||
connect(ui->comp_FontSettings, &CSettingsFontComponent::accept, this, &CSettingsFontDialog::accept);
|
||||
@@ -33,9 +34,24 @@ namespace BlackGui
|
||||
return ui->comp_FontSettings->getQss();
|
||||
}
|
||||
|
||||
void CSettingsFontDialog::setCurrentFont(const QFont &font)
|
||||
void CSettingsFontDialog::setFont(const QFont &font)
|
||||
{
|
||||
ui->comp_FontSettings->setCurrentFont(font);
|
||||
ui->comp_FontSettings->setFont(font);
|
||||
}
|
||||
|
||||
QFont CSettingsFontDialog::getFont() const
|
||||
{
|
||||
return ui->comp_FontSettings->getFont();
|
||||
}
|
||||
|
||||
QStringList CSettingsFontDialog::getFamilySizeStyle() const
|
||||
{
|
||||
return ui->comp_FontSettings->getFamilySizeStyle();
|
||||
}
|
||||
|
||||
void CSettingsFontDialog::setWithColorSelection(bool withColor)
|
||||
{
|
||||
ui->comp_FontSettings->setWithColorSelection(withColor);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user