Changeset View
Changeset View
Standalone View
Standalone View
src/FontDialog.h
- This file was added.
1 | #ifndef FONTDIALOG_H | ||||
---|---|---|---|---|---|
2 | #define FONTDIALOG_H | ||||
3 | | ||||
4 | // Qt | ||||
5 | #include <QDialog> | ||||
6 | #include <QCheckBox> | ||||
7 | #include <KFontChooser> | ||||
8 | #include <QDialogButtonBox> | ||||
9 | #include <QToolButton> | ||||
10 | | ||||
11 | namespace Konsole { | ||||
12 | class FontDialog: public QDialog | ||||
13 | { | ||||
14 | Q_OBJECT | ||||
15 | | ||||
16 | public: | ||||
17 | explicit FontDialog(QWidget *parent = nullptr); | ||||
18 | | ||||
19 | QFont font() const { return _fontChooser->font(); } | ||||
20 | void setFont(const QFont &font); | ||||
21 | | ||||
22 | Q_SIGNALS: | ||||
23 | void fontChanged(QFont font); | ||||
24 | | ||||
25 | private: | ||||
26 | KFontChooser *_fontChooser; | ||||
27 | QCheckBox *_showAllFonts; | ||||
28 | QToolButton *_showAllFontsWarningButton; | ||||
29 | QDialogButtonBox *_buttonBox; | ||||
30 | }; | ||||
31 | } | ||||
32 | | ||||
33 | #endif // FONTDIALOG_H |