From 539692bc116e533c527e33e01b313985af47ca70 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Tue, 26 Nov 2024 14:48:54 -0800 Subject: [PATCH] service/tray: re-add Q_INVOKABLE to invokable functions Was accidentally removed in the last refactor. --- src/services/status_notifier/item.hpp | 8 ++++---- src/services/status_notifier/module.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/services/status_notifier/item.hpp b/src/services/status_notifier/item.hpp index bc50672..cd3bfab 100644 --- a/src/services/status_notifier/item.hpp +++ b/src/services/status_notifier/item.hpp @@ -131,13 +131,13 @@ class StatusNotifierItem: public QObject { [[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); diff --git a/src/services/status_notifier/module.md b/src/services/status_notifier/module.md index ffe0b4c..a3a2efa 100644 --- a/src/services/status_notifier/module.md +++ b/src/services/status_notifier/module.md @@ -1,4 +1,4 @@ name = "Quickshell.Services.SystemTray" description = "Types for implementing a system tray" -headers = [ "qml.hpp" ] +headers = [ "qml.hpp", "item.hpp" ] -----