Changeset View
Changeset View
Standalone View
Standalone View
shell/currentcontainmentactionsmodel.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
51 | QHash<int, QByteArray> roleNames() const override; | 51 | QHash<int, QByteArray> roleNames() const override; | ||
52 | 52 | | |||
53 | Q_INVOKABLE bool isTriggerUsed(const QString &trigger); | 53 | Q_INVOKABLE bool isTriggerUsed(const QString &trigger); | ||
54 | Q_INVOKABLE QString mouseEventString(int mouseButtons, int modifiers); | 54 | Q_INVOKABLE QString mouseEventString(int mouseButtons, int modifiers); | ||
55 | Q_INVOKABLE QString wheelEventString(const QPointF &delta, int mouseButtons, int modifiers); | 55 | Q_INVOKABLE QString wheelEventString(const QPointF &delta, int mouseButtons, int modifiers); | ||
56 | Q_INVOKABLE bool append(const QString &action, const QString &plugin); | 56 | Q_INVOKABLE bool append(const QString &action, const QString &plugin); | ||
57 | Q_INVOKABLE void update(int row, const QString &action, const QString &plugin); | 57 | Q_INVOKABLE void update(int row, const QString &action, const QString &plugin); | ||
58 | Q_INVOKABLE void remove(int row); | 58 | Q_INVOKABLE void remove(int row); | ||
59 | Q_INVOKABLE void showConfiguration(int row); | 59 | Q_INVOKABLE void showConfiguration(int row, QQuickItem *ctx = nullptr); | ||
60 | Q_INVOKABLE void showAbout(int row, QQuickItem *ctx = nullptr); | 60 | Q_INVOKABLE void showAbout(int row, QQuickItem *ctx = nullptr); | ||
61 | Q_INVOKABLE void save(); | 61 | Q_INVOKABLE void save(); | ||
62 | 62 | | |||
63 | private: | 63 | private: | ||
64 | Plasma::Containment *m_containment; | 64 | Plasma::Containment *m_containment; | ||
65 | QHash<QString, Plasma::ContainmentActions *> m_plugins; | 65 | QHash<QString, Plasma::ContainmentActions *> m_plugins; | ||
66 | KConfigGroup m_baseCfg; | 66 | KConfigGroup m_baseCfg; | ||
67 | KConfigGroup m_tempConfig; | 67 | KConfigGroup m_tempConfig; | ||
68 | KConfig m_tempConfigParent; | 68 | KConfig m_tempConfigParent; | ||
69 | QStringList m_removedTriggers; | 69 | QStringList m_removedTriggers; | ||
70 | }; | 70 | }; | ||
71 | 71 | | |||
72 | #endif | 72 | #endif |