X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/fd74aa8e2057158d2eadb835eb61564854c81020..681d8bb6c:/src/settings/viewmodes/dolphinfontrequester.h diff --git a/src/settings/viewmodes/dolphinfontrequester.h b/src/settings/viewmodes/dolphinfontrequester.h index 263548555..ac7ef222a 100644 --- a/src/settings/viewmodes/dolphinfontrequester.h +++ b/src/settings/viewmodes/dolphinfontrequester.h @@ -20,17 +20,16 @@ #ifndef DOLPHINFONTREQUESTER_H #define DOLPHINFONTREQUESTER_H -#include - #include +#include -class KComboBox; +class QComboBox; class QPushButton; /** * @brief Allows to select between using the system font or a custom font. */ -class DolphinFontRequester : public KHBox +class DolphinFontRequester : public QWidget { Q_OBJECT @@ -41,8 +40,8 @@ public: CustomFont = 1 }; - DolphinFontRequester(QWidget* parent); - virtual ~DolphinFontRequester(); + explicit DolphinFontRequester(QWidget* parent); + ~DolphinFontRequester() override; void setMode(Mode mode); Mode mode() const; @@ -52,7 +51,7 @@ public: * if the mode is \a CustomFont, otherwise the system font is * returned. */ - QFont font() const; + QFont currentFont() const; void setCustomFont(const QFont& font); QFont customFont() const; @@ -61,15 +60,12 @@ signals: /** Is emitted, if the font has been changed. */ void changed(); -protected: - bool event(QEvent* event); - private slots: void openFontDialog(); void changeMode(int index); private: - KComboBox* m_modeCombo; + QComboBox* m_modeCombo; QPushButton* m_chooseFontButton; Mode m_mode;