forked from quickshell/quickshell
service/tray: add activate, secondaryActivate and scroll methods
This commit is contained in:
parent
94a1140aab
commit
97bcdbecc1
5 changed files with 25 additions and 6 deletions
|
@ -69,13 +69,13 @@ public:
|
|||
);
|
||||
|
||||
// Primary activation action, generally triggered via a left click.
|
||||
//Q_INVOKABLE void activate();
|
||||
Q_INVOKABLE void activate();
|
||||
|
||||
// Secondary activation action, generally triggered via a middle click.
|
||||
//Q_INVOKABLE void secondaryActivate();
|
||||
Q_INVOKABLE void secondaryActivate();
|
||||
|
||||
// Scroll action, such as changing volume on a mixer.
|
||||
//Q_INVOKABLE void scroll(qint32 delta, bool horizontal);
|
||||
Q_INVOKABLE void scroll(qint32 delta, bool horizontal);
|
||||
|
||||
[[nodiscard]] QString id() const;
|
||||
[[nodiscard]] QString title() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue