Commit f2275d44 authored by Alexander Volkov's avatar Alexander Volkov

Support submenus in context menu for systray icon

Reviewers: #plasma, graesslin, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: broulik, davidedmundson, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D9643
parent 0490a151
......@@ -47,6 +47,11 @@ QPlatformMenuItem *SystemTrayMenu::createMenuItem() const
return new SystemTrayMenuItem();
}
QPlatformMenu *SystemTrayMenu::createSubMenu() const
{
return new SystemTrayMenu();
}
void SystemTrayMenu::insertMenuItem(QPlatformMenuItem *menuItem, QPlatformMenuItem *before)
{
if (SystemTrayMenuItem *ours = qobject_cast<SystemTrayMenuItem*>(menuItem)) {
......
......@@ -47,6 +47,7 @@ public:
void syncSeparatorsCollapsible(bool enable) override;
quintptr tag() const override;
QPlatformMenuItem *createMenuItem() const override;
QPlatformMenu *createSubMenu() const override;
QMenu *menu() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment