Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kdeplatformtheme.h
Show All 36 Lines | |||||
37 | class AltKeyEventListener; | 37 | class AltKeyEventListener; | ||
38 | 38 | | |||
39 | class KdePlatformTheme : public QPlatformTheme | 39 | class KdePlatformTheme : public QPlatformTheme | ||
40 | { | 40 | { | ||
41 | public: | 41 | public: | ||
42 | KdePlatformTheme(); | 42 | KdePlatformTheme(); | ||
43 | ~KdePlatformTheme(); | 43 | ~KdePlatformTheme(); | ||
44 | 44 | | |||
45 | QVariant themeHint(ThemeHint hint) const Q_DECL_OVERRIDE; | 45 | QVariant themeHint(ThemeHint hint) const override; | ||
46 | #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0) | 46 | #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0) | ||
47 | QIcon fileIcon(const QFileInfo &fileInfo, | 47 | QIcon fileIcon(const QFileInfo &fileInfo, | ||
48 | QPlatformTheme::IconOptions iconOptions) const override; | 48 | QPlatformTheme::IconOptions iconOptions) const override; | ||
49 | #else | 49 | #else | ||
50 | QPixmap fileIconPixmap(const QFileInfo &fileInfo, const QSizeF &size, | 50 | QPixmap fileIconPixmap(const QFileInfo &fileInfo, const QSizeF &size, | ||
51 | QPlatformTheme::IconOptions iconOptions) const override; | 51 | QPlatformTheme::IconOptions iconOptions) const override; | ||
52 | // this will be the implementation | 52 | // this will be the implementation | ||
53 | QIcon fileIcon(const QFileInfo &fileInfo, | 53 | QIcon fileIcon(const QFileInfo &fileInfo, | ||
54 | QPlatformTheme::IconOptions iconOptions) const; | 54 | QPlatformTheme::IconOptions iconOptions) const; | ||
55 | #endif | 55 | #endif | ||
56 | const QPalette *palette(Palette type = SystemPalette) const Q_DECL_OVERRIDE; | 56 | const QPalette *palette(Palette type = SystemPalette) const override; | ||
57 | const QFont *font(Font type) const Q_DECL_OVERRIDE; | 57 | const QFont *font(Font type) const override; | ||
58 | QIconEngine *createIconEngine(const QString &iconName) const Q_DECL_OVERRIDE; | 58 | QIconEngine *createIconEngine(const QString &iconName) const override; | ||
59 | QList<QKeySequence> keyBindings(QKeySequence::StandardKey key) const Q_DECL_OVERRIDE; | 59 | QList<QKeySequence> keyBindings(QKeySequence::StandardKey key) const override; | ||
60 | 60 | | |||
61 | QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const Q_DECL_OVERRIDE; | 61 | QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override; | ||
62 | bool usePlatformNativeDialog(DialogType type) const Q_DECL_OVERRIDE; | 62 | bool usePlatformNativeDialog(DialogType type) const override; | ||
63 | 63 | | |||
64 | QString standardButtonText(int button) const Q_DECL_OVERRIDE; | 64 | QString standardButtonText(int button) const override; | ||
65 | 65 | | |||
66 | QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const Q_DECL_OVERRIDE; | 66 | QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const override; | ||
67 | 67 | | |||
68 | #if QT_VERSION >= QT_VERSION_CHECK(5,7,0) | 68 | #if QT_VERSION >= QT_VERSION_CHECK(5,7,0) | ||
69 | QPlatformMenuBar *createPlatformMenuBar() const Q_DECL_OVERRIDE; | 69 | QPlatformMenuBar *createPlatformMenuBar() const override; | ||
70 | #endif | 70 | #endif | ||
71 | 71 | | |||
72 | private: | 72 | private: | ||
73 | void loadSettings(); | 73 | void loadSettings(); | ||
74 | 74 | | |||
75 | static void setWindowProperty(QWindow *window, const QByteArray &name, const QByteArray &value); | 75 | static void setWindowProperty(QWindow *window, const QByteArray &name, const QByteArray &value); | ||
76 | 76 | | |||
77 | KHintsSettings *m_hints; | 77 | KHintsSettings *m_hints; | ||
78 | KFontSettingsData *m_fontsData; | 78 | KFontSettingsData *m_fontsData; | ||
79 | QScopedPointer<KWaylandIntegration> m_kwaylandIntegration; | 79 | QScopedPointer<KWaylandIntegration> m_kwaylandIntegration; | ||
80 | QScopedPointer<X11Integration> m_x11Integration; | 80 | QScopedPointer<X11Integration> m_x11Integration; | ||
81 | 81 | | |||
82 | }; | 82 | }; | ||
83 | 83 | | |||
84 | #endif // KDEPLATFORMTHEME_H | 84 | #endif // KDEPLATFORMTHEME_H |