]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/viewmodes/dolphinfontrequester.h
Add 'Sort By' and 'View Mode' into Dolphin file context menus
[dolphin.git] / src / settings / viewmodes / dolphinfontrequester.h
index 263548555069a1b544bbe5e42f1e2ed186b4240e..6f1b8400eaa5fcaf13a57675c87b7727c5bfa523 100644 (file)
@@ -20,9 +20,8 @@
 #ifndef DOLPHINFONTREQUESTER_H
 #define DOLPHINFONTREQUESTER_H
 
-#include <khbox.h>
-
 #include <QFont>
+#include <QWidget>
 
 class KComboBox;
 class QPushButton;
@@ -30,7 +29,7 @@ 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,9 +60,6 @@ signals:
     /** Is emitted, if the font has been changed. */
     void changed();
 
-protected:
-    bool event(QEvent* event);
-
 private slots:
     void openFontDialog();
     void changeMode(int index);