diff options
| author | David Edmundson <davidedmundson@kde.org> | 2023-06-02 13:10:47 +0100 |
|---|---|---|
| committer | David Edmundson <davidedmundson@kde.org> | 2024-10-10 21:14:40 +0000 |
| commit | efdb5d16df6f7f400b30596f5ec70f1c5a39fb2d (patch) | |
| tree | 78fe0072bdf3dd88722f9b849f32d50e3eb13458 /src/gui/platform/unix/qgenericunixservices_p.h | |
| parent | 9ef4c123c39c642357c9e8530d59f32f220a7824 (diff) | |
xcb: Report location of DBus menubar on window properties
KDE extended the DBus menubar protocol to report the DBus service and
path on the window itself, this makes looking it up easier than going
through a broker.
On Qt5 this worked because we handled the entire DBus menu from scratch
in KDE's own platformtheme, but given Qt now has direct dbusmenu bar
support it makes sense to have the remaining reporting side all in one
place.
Change-Id: I78044992fa1840c40a66384033ed790ce0cd7f96
Task-number: QTBUG-116352
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/gui/platform/unix/qgenericunixservices_p.h')
| -rw-r--r-- | src/gui/platform/unix/qgenericunixservices_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/platform/unix/qgenericunixservices_p.h b/src/gui/platform/unix/qgenericunixservices_p.h index 8bb49527793..9e34f090229 100644 --- a/src/gui/platform/unix/qgenericunixservices_p.h +++ b/src/gui/platform/unix/qgenericunixservices_p.h @@ -39,6 +39,9 @@ public: void setApplicationBadge(qint64 number); virtual QString portalWindowIdentifier(QWindow *window); + virtual void registerDBusMenuForWindow(QWindow *window, const QString &service, const QString &path); + virtual void unregisterDBusMenuForWindow(QWindow *window); + private: QString m_webBrowser; QString m_documentLauncher; |
