Skip to content

Commit

Permalink
service/tray: re-add Q_INVOKABLE to invokable functions
Browse files Browse the repository at this point in the history
Was accidentally removed in the last refactor.
  • Loading branch information
outfoxxed committed Nov 26, 2024
1 parent 87a57b7 commit 539692b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/services/status_notifier/item.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/services/status_notifier/module.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "Quickshell.Services.SystemTray"
description = "Types for implementing a system tray"
headers = [ "qml.hpp" ]
headers = [ "qml.hpp", "item.hpp" ]
-----

0 comments on commit 539692b

Please sign in to comment.