X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Ffontssettingspage.h;h=42b2f4317040bb5c2fc908ad55aa8c917a9d94cf;hp=7928cb8dc88540e4b40a369cba4b4bbaefc32e9d;hb=a71a4cc60303b29f493d9d0b6636f00473c4eaf6;hpb=4bfbd8dcbcb398302aaad0b6707c561760d7a7ac diff --git a/src/qtui/settingspages/fontssettingspage.h b/src/qtui/settingspages/fontssettingspage.h index 7928cb8d..42b2f431 100644 --- a/src/qtui/settingspages/fontssettingspage.h +++ b/src/qtui/settingspages/fontssettingspage.h @@ -21,12 +21,15 @@ #ifndef _FONTSSETTINGSPAGE_H_ #define _FONTSSETTINGSPAGE_H_ +#include + #include "settings.h" #include "settingspage.h" #include "ui_fontssettingspage.h" class QSignalMapper; +class QLabel; class FontsSettingsPage : public SettingsPage { Q_OBJECT @@ -34,7 +37,7 @@ class FontsSettingsPage : public SettingsPage { public: FontsSettingsPage(QWidget *parent = 0); - bool hasChanged() const; + bool hasDefaults() const; public slots: void save(); @@ -43,9 +46,12 @@ class FontsSettingsPage : public SettingsPage { private slots: void load(Settings::Mode mode); + void initLabel(QLabel *label, const QFont &font); void setFont(QLabel *label, const QFont &font); void chooseFont(QWidget *label); + void widgetHasChanged(); + private: Ui::FontsSettingsPage ui;