Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/khintssettings.h
Show All 15 Lines | |||||
16 | * along with this library; see the file COPYING.LIB. If not, write to | 16 | * along with this library; see the file COPYING.LIB. If not, write to | ||
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef KHINTS_SETTINGS_H | 21 | #ifndef KHINTS_SETTINGS_H | ||
22 | #define KHINTS_SETTINGS_H | 22 | #define KHINTS_SETTINGS_H | ||
23 | 23 | | |||
24 | #include <QDBusVariant> | ||||
24 | #include <QObject> | 25 | #include <QObject> | ||
25 | #include <QVariant> | 26 | #include <QVariant> | ||
26 | 27 | | |||
27 | #include <qpa/qplatformtheme.h> | 28 | #include <qpa/qplatformtheme.h> | ||
28 | #include <ksharedconfig.h> | 29 | #include <ksharedconfig.h> | ||
29 | 30 | | |||
30 | class KConfigGroup; | 31 | class KConfigGroup; | ||
31 | 32 | | |||
Show All 33 Lines | 37 | public: | |||
65 | } | 66 | } | ||
66 | QStringList xdgIconThemePaths() const; | 67 | QStringList xdgIconThemePaths() const; | ||
67 | 68 | | |||
68 | private Q_SLOTS: | 69 | private Q_SLOTS: | ||
69 | void delayedDBusConnects(); | 70 | void delayedDBusConnects(); | ||
70 | void setupIconLoader(); | 71 | void setupIconLoader(); | ||
71 | void toolbarStyleChanged(); | 72 | void toolbarStyleChanged(); | ||
72 | void slotNotifyChange(int type, int arg); | 73 | void slotNotifyChange(int type, int arg); | ||
74 | void slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value); | ||||
73 | 75 | | |||
74 | private: | 76 | private: | ||
75 | QVariant readConfigValue(const QString &group, const QString &key, const QVariant &defaultValue); | 77 | QVariant readConfigValue(const QString &group, const QString &key, const QVariant &defaultValue); | ||
78 | QVariant readConfigValue(const KConfigGroup &cg, const QString &key, const QVariant &defaultValue); | ||||
76 | void loadPalettes(); | 79 | void loadPalettes(); | ||
77 | void iconChanged(int group); | 80 | void iconChanged(int group); | ||
78 | void updateQtSettings(KConfigGroup &cg); | 81 | void updateQtSettings(KConfigGroup &cg); | ||
79 | void updateShowIconsInMenuItems(KConfigGroup &cg); | 82 | void updateShowIconsInMenuItems(KConfigGroup &cg); | ||
80 | Qt::ToolButtonStyle toolButtonStyle(const KConfigGroup &cg) const; | 83 | Qt::ToolButtonStyle toolButtonStyle(const KConfigGroup &cg); | ||
81 | void updateCursorTheme(); | 84 | void updateCursorTheme(); | ||
85 | void updatePortalSetting(); | ||||
82 | 86 | | |||
83 | QHash<QPlatformTheme::Palette, QPalette *> m_palettes; | 87 | QHash<QPlatformTheme::Palette, QPalette *> m_palettes; | ||
84 | QHash<QPlatformTheme::ThemeHint, QVariant> m_hints; | 88 | QHash<QPlatformTheme::ThemeHint, QVariant> m_hints; | ||
85 | KSharedConfigPtr mKdeGlobals; | 89 | KSharedConfigPtr mKdeGlobals; | ||
86 | KSharedConfigPtr mDefaultLnfConfig; | 90 | KSharedConfigPtr mDefaultLnfConfig; | ||
87 | KSharedConfigPtr mLnfConfig; | 91 | KSharedConfigPtr mLnfConfig; | ||
92 | QMap<QString, QVariantMap> mKdeGlobalsPortal; | ||||
93 | bool mUsePortal; | ||||
88 | }; | 94 | }; | ||
89 | 95 | | |||
90 | #endif //KHINTS_SETTINGS_H | 96 | #endif //KHINTS_SETTINGS_H |