service/tray: re-add Q_INVOKABLE to invokable functions

Was accidentally removed in the last refactor.
This commit is contained in:
outfoxxed 2024-11-26 14:48:54 -08:00
parent 87a57b7a2c
commit 539692bc11
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 5 additions and 5 deletions

View file

@ -131,13 +131,13 @@ public:
[[nodiscard]] dbus::dbusmenu::DBusMenuHandle* menuHandle();
/// Primary activation action, generally triggered via a left click.
void activate();
Q_INVOKABLE void activate();
/// Secondary activation action, generally triggered via a middle click.
void secondaryActivate();
Q_INVOKABLE void secondaryActivate();
/// Scroll action, such as changing volume on a mixer.
void scroll(qint32 delta, bool horizontal) const;
Q_INVOKABLE void scroll(qint32 delta, bool horizontal) const;
/// Display a platform menu at the given location relative to the parent window.
void display(QObject* parentWindow, qint32 relativeX, qint32 relativeY);
Q_INVOKABLE void display(QObject* parentWindow, qint32 relativeX, qint32 relativeY);
QS_BINDABLE_GETTER(QString, bId, id, bindableId);
QS_BINDABLE_GETTER(QString, bTitle, title, bindableTitle);

View file

@ -1,4 +1,4 @@
name = "Quickshell.Services.SystemTray"
description = "Types for implementing a system tray"
headers = [ "qml.hpp" ]
headers = [ "qml.hpp", "item.hpp" ]
-----