23 #ifndef GUI_FONTCONFIG_H 24 #define GUI_FONTCONFIG_H 26 #include "Interfaces/PreferenceDialog/PreferenceWidgetInterface.h" 27 #include "GUI/Preferences/ui_GUI_FontConfig.h" 29 #include <QFontDatabase> 56 void default_clicked();
57 void combo_fonts_changed(
const QFont& font);
60 void skin_changed()
override;
64 QFontDatabase* _font_db=
nullptr;
70 QStringList get_available_font_sizes(
const QString& font_name,
const QString& style=QString());
71 QStringList get_available_font_sizes(
const QFont& font);
73 void fill_sizes(
const QStringList& sizes);
76 #endif // FONTCONFIG_H void commit() override
This method is called, when OK or apply is pressed. So all settings should be written there...
QString get_action_name() const override
has to be implemented and should return the translated action text
void init_ui() override
call setup_parent(this) here. initialize compoenents and connections here. After calling setup_parent...
Template class for implementing preference dialogs and preference widgets.
Definition: PreferenceInterface.h:70
void revert() override
This method is called, when cancel is clicked. So the gui should be re-initialized when this method i...
Definition: ui_GUI_FontConfig.h:184
Definition: GUI_FontConfig.h:34
void language_changed() override
automatically called when language has changed. When overriding this method. Overriding this method s...
Definition: PreferenceInterface.h:116