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
|
@ -89,6 +89,14 @@ bool SystemTrayItem::onlyMenu() const {
|
|||
return this->item->isMenu.get();
|
||||
}
|
||||
|
||||
void SystemTrayItem::activate() { this->item->activate(); }
|
||||
|
||||
void SystemTrayItem::secondaryActivate() { this->item->secondaryActivate(); }
|
||||
|
||||
void SystemTrayItem::scroll(qint32 delta, bool horizontal) {
|
||||
this->item->scroll(delta, horizontal);
|
||||
}
|
||||
|
||||
SystemTray::SystemTray(QObject* parent): QObject(parent) {
|
||||
auto* host = StatusNotifierHost::instance();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue