Changeset View
Changeset View
Standalone View
Standalone View
src/settings/viewmodes/dolphinfontrequester.h
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the * | 15 | * along with this program; if not, write to the * | ||
16 | * Free Software Foundation, Inc., * | 16 | * Free Software Foundation, Inc., * | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * | ||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | #ifndef DOLPHINFONTREQUESTER_H | 20 | #ifndef DOLPHINFONTREQUESTER_H | ||
21 | #define DOLPHINFONTREQUESTER_H | 21 | #define DOLPHINFONTREQUESTER_H | ||
22 | 22 | | |||
23 | #include <QFont> | 23 | #include <QFont> | ||
broulik: Not needed since you forward-declare it below and only use a pointer to it | |||||
24 | #include <QWidget> | 24 | #include <QWidget> | ||
25 | 25 | | |||
26 | class KComboBox; | 26 | class QComboBox; | ||
27 | class QPushButton; | 27 | class QPushButton; | ||
28 | 28 | | |||
29 | /** | 29 | /** | ||
30 | * @brief Allows to select between using the system font or a custom font. | 30 | * @brief Allows to select between using the system font or a custom font. | ||
31 | */ | 31 | */ | ||
32 | class DolphinFontRequester : public QWidget | 32 | class DolphinFontRequester : public QWidget | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
Show All 25 Lines | 59 | signals: | |||
60 | /** Is emitted, if the font has been changed. */ | 60 | /** Is emitted, if the font has been changed. */ | ||
61 | void changed(); | 61 | void changed(); | ||
62 | 62 | | |||
63 | private slots: | 63 | private slots: | ||
64 | void openFontDialog(); | 64 | void openFontDialog(); | ||
65 | void changeMode(int index); | 65 | void changeMode(int index); | ||
66 | 66 | | |||
67 | private: | 67 | private: | ||
68 | KComboBox* m_modeCombo; | 68 | QComboBox* m_modeCombo; | ||
69 | QPushButton* m_chooseFontButton; | 69 | QPushButton* m_chooseFontButton; | ||
70 | 70 | | |||
71 | Mode m_mode; | 71 | Mode m_mode; | ||
72 | QFont m_customFont; | 72 | QFont m_customFont; | ||
73 | }; | 73 | }; | ||
74 | 74 | | |||
75 | #endif | 75 | #endif |
Not needed since you forward-declare it below and only use a pointer to it