X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ffontselector.h;h=378bf2960758fc8814dc6864e27eb73abe20a538;hp=60d277766b19091065220e8149e914a33539b420;hb=d45d1044c030312878cb648fd1325ce70b079c44;hpb=7a30024fa1fe4e09902f2fd7fc9022b427376dd4 diff --git a/src/uisupport/fontselector.h b/src/uisupport/fontselector.h index 60d27776..378bf296 100644 --- a/src/uisupport/fontselector.h +++ b/src/uisupport/fontselector.h @@ -27,17 +27,13 @@ class FontSelector : public QWidget { Q_OBJECT Q_PROPERTY(QFont selectedFont READ selectedFont WRITE setSelectedFont) - Q_PROPERTY(QString text READ text WRITE setText) public: FontSelector(QWidget *parent = 0); - FontSelector(const QString &label, QWidget *parent = 0); inline const QFont &selectedFont() const { return _font; } - inline QString text() const { return _label->text(); } public slots: - void setText(const QString &label); void setSelectedFont(const QFont &font); signals: @@ -51,9 +47,7 @@ protected slots: private: QFont _font; - QLabel *_demo, *_label; - - void init(const QString &label = "Font"); + QLabel *_demo; }; #endif // FONTSELECTOR_H_