summaryrefslogtreecommitdiffstats
path: root/src/gui/platform/unix/qgenericunixservices.cpp
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2023-06-02 13:10:47 +0100
committerDavid Edmundson <davidedmundson@kde.org>2024-10-10 21:14:40 +0000
commitefdb5d16df6f7f400b30596f5ec70f1c5a39fb2d (patch)
tree78fe0072bdf3dd88722f9b849f32d50e3eb13458 /src/gui/platform/unix/qgenericunixservices.cpp
parent9ef4c123c39c642357c9e8530d59f32f220a7824 (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.cpp')
-rw-r--r--src/gui/platform/unix/qgenericunixservices.cpp14
1 files changed, 14 insertions, 0 deletions
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) {