Skip to content

Commit 539692b

Browse files
committed
service/tray: re-add Q_INVOKABLE to invokable functions
Was accidentally removed in the last refactor.
1 parent 87a57b7 commit 539692b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/services/status_notifier/item.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ class StatusNotifierItem: public QObject {
131131
[[nodiscard]] dbus::dbusmenu::DBusMenuHandle* menuHandle();
132132

133133
/// Primary activation action, generally triggered via a left click.
134-
void activate();
134+
Q_INVOKABLE void activate();
135135
/// Secondary activation action, generally triggered via a middle click.
136-
void secondaryActivate();
136+
Q_INVOKABLE void secondaryActivate();
137137
/// Scroll action, such as changing volume on a mixer.
138-
void scroll(qint32 delta, bool horizontal) const;
138+
Q_INVOKABLE void scroll(qint32 delta, bool horizontal) const;
139139
/// Display a platform menu at the given location relative to the parent window.
140-
void display(QObject* parentWindow, qint32 relativeX, qint32 relativeY);
140+
Q_INVOKABLE void display(QObject* parentWindow, qint32 relativeX, qint32 relativeY);
141141

142142
QS_BINDABLE_GETTER(QString, bId, id, bindableId);
143143
QS_BINDABLE_GETTER(QString, bTitle, title, bindableTitle);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name = "Quickshell.Services.SystemTray"
22
description = "Types for implementing a system tray"
3-
headers = [ "qml.hpp" ]
3+
headers = [ "qml.hpp", "item.hpp" ]
44
-----

0 commit comments

Comments
 (0)