#ifndef DOLPHINFONTREQUESTER_H
#define DOLPHINFONTREQUESTER_H
-#include <khbox.h>
-
#include <QFont>
+#include <QWidget>
class KComboBox;
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
CustomFont = 1
};
- DolphinFontRequester(QWidget* parent);
- virtual ~DolphinFontRequester();
+ explicit DolphinFontRequester(QWidget* parent);
+ ~DolphinFontRequester() override;
void setMode(Mode mode);
Mode mode() const;
* 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;
/** Is emitted, if the font has been changed. */
void changed();
-protected:
- bool event(QEvent* event);
-
private slots:
void openFontDialog();
void changeMode(int index);