forked from quickshell/quickshell
service/tray: add activate, secondaryActivate and scroll methods
This commit is contained in:
parent
94a1140aab
commit
97bcdbecc1
5 changed files with 25 additions and 6 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <qobject.h>
|
||||
#include <qpixmap.h>
|
||||
#include <qtmetamacros.h>
|
||||
#include <qtypes.h>
|
||||
|
||||
#include "../../dbus/dbusutil.hpp"
|
||||
#include "dbus_item.h"
|
||||
|
@ -27,6 +28,10 @@ public:
|
|||
[[nodiscard]] QString iconId() const;
|
||||
[[nodiscard]] QPixmap createPixmap(const QSize& size) const;
|
||||
|
||||
void activate();
|
||||
void secondaryActivate();
|
||||
void scroll(qint32 delta, bool horizontal);
|
||||
|
||||
// clang-format off
|
||||
dbus::DBusPropertyGroup properties;
|
||||
dbus::DBusProperty<QString> id {this->properties, "Id"};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue