Description: Restore Qt5 system tray API to isStatusNotifierHostRegistered
 watcher_registered.patch switches the Qt5 code path to
 QDBusMenuConnection::isWatcherRegistered(), an API that only exists in Qt 5
 builds carrying the upstream qtbase rename patch. openKylin's Qt 5.15 still
 provides the original isStatusNotifierHostRegistered() name, so the Qt5
 build fails with "has no member named isWatcherRegistered". Restore the
 original call in the Qt5 code path to fix the FTBFS.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-05

--- qgnomeplatform-0.9.2.orig/src/theme/qgnomeplatformtheme.cpp
+++ qgnomeplatform-0.9.2/src/theme/qgnomeplatformtheme.cpp
@@ -182,7 +182,7 @@ static bool isDBusTrayAvailable()
     static bool dbusTrayAvailableKnown = false;
     if (!dbusTrayAvailableKnown) {
         QDBusMenuConnection conn;
-        if (conn.isWatcherRegistered()) {
+        if (conn.isStatusNotifierHostRegistered()) {
             dbusTrayAvailable = true;
         }
         dbusTrayAvailableKnown = true;

