Skip to content

Commit 71da0a5

Browse files
committed
Drop support for QDBusTrayIcon for not being exported by Qt
1 parent 17e8b02 commit 71da0a5

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/theme/qgnomeplatformtheme.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
#include <gtk-3.0/gtk/gtk.h>
3232
#define signals Q_SIGNALS
3333

34-
#ifndef QT_NO_SYSTEMTRAYICON
35-
#include <private/qdbustrayicon_p.h>
36-
#endif
37-
3834
QGnomePlatformTheme::QGnomePlatformTheme()
3935
{
4036
if (QGuiApplication::platformName() != QStringLiteral("xcb")) {
@@ -109,27 +105,9 @@ QPlatformDialogHelper *QGnomePlatformTheme::createPlatformDialogHelper(QPlatform
109105
}
110106
}
111107

112-
#ifndef QT_NO_SYSTEMTRAYICON
113-
static bool isDBusTrayAvailable() {
114-
static bool dbusTrayAvailable = false;
115-
static bool dbusTrayAvailableKnown = false;
116-
if (!dbusTrayAvailableKnown) {
117-
QDBusMenuConnection conn;
118-
if (conn.isStatusNotifierHostRegistered()) {
119-
dbusTrayAvailable = true;
120-
}
121-
dbusTrayAvailableKnown = true;
122-
}
123-
return dbusTrayAvailable;
124-
}
125-
#endif
126-
127108
#ifndef QT_NO_SYSTEMTRAYICON
128109
QPlatformSystemTrayIcon* QGnomePlatformTheme::createPlatformSystemTrayIcon() const
129110
{
130-
if (isDBusTrayAvailable()) {
131-
return new QDBusTrayIcon();
132-
}
133111
return Q_NULLPTR;
134112
}
135113
#endif

0 commit comments

Comments
 (0)