6 #ifndef SWIFT_GUI_COMPONENTS_SETTINGSFONTCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_SETTINGSFONTCOMPONENT_H
13 class CSettingsFontComponent;
42 const QString &
getQss()
const {
return m_qss; }
45 void setFont(
const QFont &font);
67 QScopedPointer<Ui::CSettingsFontComponent> ui;
68 QColor m_selectedColor;
72 bool m_noColorDefault =
true;
77 void resetFontAndReject();
78 void clearQssAndResetFont();
79 void fontColorDialog();
82 void initUiValues(
const QFont &font,
const QColor &color);
CSettingsFontComponent(QWidget *parent=nullptr)
Constructor.
void reject()
To be used with dialogs.
void setFont(const QFont &font)
Set the current font.
const QString & getQss() const
Get the stylesheet.
void accept()
To be used with dialogs.
void setMode(Mode m)
Set mode.
void setWithColorSelection(bool withColor)
With color selection.
QStringList getFamilySizeStyle() const
Strings such as.
@ GenerateQssOnly
builds a qss style string
@ DirectUpdate
directly updating a font qss file
virtual ~CSettingsFontComponent()
Destructor.
QFont getFont() const
Get font selection.
void setStyleSheetDefaultColor()
Set the default color from style sheet.
High level reusable GUI components.