Support submenus in context menu for systray icon
ClosedPublic

Authored by volkov on Jan 3 2018, 4:48 PM.

Diff Detail

Repository
R135 Integration for Qt applications in Plasma
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
volkov created this revision.Jan 3 2018, 4:48 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 3 2018, 4:48 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
volkov requested review of this revision.Jan 3 2018, 4:48 PM
volkov added a comment.Jan 3 2018, 4:53 PM

BTW, why do we need to support KDEPlatformSystemTrayIcon? Why don't rely on QDBusTrayIcon?

Why don't rely on QDBusTrayIcon?

It's internal to Qt.

We could fork it like we did with the application menu, but then that's no easier than maintaining our current code.

Please fill in the "testing done" field.

+1

I can verify that it makes VLC player's "Speed" sub menu in its tray icon work, checked that Qt's code is identical.

davidedmundson accepted this revision.Jan 5 2018, 11:29 AM
This revision is now accepted and ready to land.Jan 5 2018, 11:29 AM

Thanks for the real-world example.

volkov closed this revision.Jan 8 2018, 12:17 PM