From efdb5d16df6f7f400b30596f5ec70f1c5a39fb2d Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 2 Jun 2023 13:10:47 +0100 Subject: 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 --- src/gui/platform/unix/qgenericunixservices.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gui/platform/unix/qgenericunixservices.cpp') diff --git a/src/gui/platform/unix/qgenericunixservices.cpp b/src/gui/platform/unix/qgenericunixservices.cpp index 3aa071b8b26..32487b16511 100644 --- a/src/gui/platform/unix/qgenericunixservices.cpp +++ b/src/gui/platform/unix/qgenericunixservices.cpp @@ -577,6 +577,20 @@ QString QGenericUnixServices::portalWindowIdentifier(QWindow *window) return QString(); } + +void QGenericUnixServices::registerDBusMenuForWindow(QWindow *window, const QString &service, const QString &path) +{ + Q_UNUSED(window); + Q_UNUSED(service); + Q_UNUSED(path); +} + +void QGenericUnixServices::unregisterDBusMenuForWindow(QWindow *window) +{ + Q_UNUSED(window); +} + + bool QGenericUnixServices::hasCapability(Capability capability) const { switch (capability) { -- cgit v1.2.3