Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/declarative-plugin/previewbridge.h
Show All 39 Lines | |||||
40 | class PreviewBridge : public DecorationBridge | 40 | class PreviewBridge : public DecorationBridge | ||
41 | { | 41 | { | ||
42 | Q_OBJECT | 42 | Q_OBJECT | ||
43 | Q_PROPERTY(QString plugin READ plugin WRITE setPlugin NOTIFY pluginChanged) | 43 | Q_PROPERTY(QString plugin READ plugin WRITE setPlugin NOTIFY pluginChanged) | ||
44 | Q_PROPERTY(QString theme READ theme WRITE setTheme NOTIFY themeChanged) | 44 | Q_PROPERTY(QString theme READ theme WRITE setTheme NOTIFY themeChanged) | ||
45 | Q_PROPERTY(bool valid READ isValid NOTIFY validChanged) | 45 | Q_PROPERTY(bool valid READ isValid NOTIFY validChanged) | ||
46 | public: | 46 | public: | ||
47 | explicit PreviewBridge(QObject *parent = nullptr); | 47 | explicit PreviewBridge(QObject *parent = nullptr); | ||
48 | virtual ~PreviewBridge(); | 48 | ~PreviewBridge() override; | ||
49 | std::unique_ptr<DecoratedClientPrivate> createClient(DecoratedClient *client, Decoration *decoration) override; | 49 | std::unique_ptr<DecoratedClientPrivate> createClient(DecoratedClient *client, Decoration *decoration) override; | ||
50 | void update(Decoration* decoration, const QRect& geometry) override; | 50 | void update(Decoration* decoration, const QRect& geometry) override; | ||
51 | std::unique_ptr<DecorationSettingsPrivate> settings(DecorationSettings *parent) override; | 51 | std::unique_ptr<DecorationSettingsPrivate> settings(DecorationSettings *parent) override; | ||
52 | 52 | | |||
53 | PreviewClient *lastCreatedClient() { | 53 | PreviewClient *lastCreatedClient() { | ||
54 | return m_lastCreatedClient; | 54 | return m_lastCreatedClient; | ||
55 | } | 55 | } | ||
56 | PreviewSettings *lastCreatedSettings() { | 56 | PreviewSettings *lastCreatedSettings() { | ||
Show All 37 Lines | 93 | { | |||
94 | Q_OBJECT | 94 | Q_OBJECT | ||
95 | Q_PROPERTY(QString plugin READ plugin WRITE setPlugin NOTIFY pluginChanged) | 95 | Q_PROPERTY(QString plugin READ plugin WRITE setPlugin NOTIFY pluginChanged) | ||
96 | Q_PROPERTY(QString theme READ theme WRITE setTheme NOTIFY themeChanged) | 96 | Q_PROPERTY(QString theme READ theme WRITE setTheme NOTIFY themeChanged) | ||
97 | Q_PROPERTY(bool valid READ isValid NOTIFY validChanged) | 97 | Q_PROPERTY(bool valid READ isValid NOTIFY validChanged) | ||
98 | Q_PROPERTY(KDecoration2::Preview::PreviewBridge *bridge READ bridge CONSTANT) | 98 | Q_PROPERTY(KDecoration2::Preview::PreviewBridge *bridge READ bridge CONSTANT) | ||
99 | 99 | | |||
100 | public: | 100 | public: | ||
101 | explicit BridgeItem(QObject *parent = nullptr); | 101 | explicit BridgeItem(QObject *parent = nullptr); | ||
102 | virtual ~BridgeItem(); | 102 | ~BridgeItem() override; | ||
103 | 103 | | |||
104 | void setPlugin(const QString &plugin) { | 104 | void setPlugin(const QString &plugin) { | ||
105 | m_bridge->setPlugin(plugin); | 105 | m_bridge->setPlugin(plugin); | ||
106 | } | 106 | } | ||
107 | QString plugin() const { | 107 | QString plugin() const { | ||
108 | return m_bridge->plugin(); | 108 | return m_bridge->plugin(); | ||
109 | } | 109 | } | ||
110 | void setTheme(const QString &theme) { | 110 | void setTheme(const QString &theme) { | ||
Show All 29 Lines |