service/tray: add activate, secondaryActivate and scroll methods

This commit is contained in:
outfoxxed 2024-04-19 22:03:06 -07:00
parent 94a1140aab
commit 97bcdbecc1
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 25 additions and 6 deletions

View file

@ -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;