File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 31
31
#include < gtk-3.0/gtk/gtk.h>
32
32
#define signals Q_SIGNALS
33
33
34
- #ifndef QT_NO_SYSTEMTRAYICON
35
- #include < private/qdbustrayicon_p.h>
36
- #endif
37
-
38
34
QGnomePlatformTheme::QGnomePlatformTheme ()
39
35
{
40
36
if (QGuiApplication::platformName () != QStringLiteral (" xcb" )) {
@@ -109,27 +105,9 @@ QPlatformDialogHelper *QGnomePlatformTheme::createPlatformDialogHelper(QPlatform
109
105
}
110
106
}
111
107
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
-
127
108
#ifndef QT_NO_SYSTEMTRAYICON
128
109
QPlatformSystemTrayIcon* QGnomePlatformTheme::createPlatformSystemTrayIcon () const
129
110
{
130
- if (isDBusTrayAvailable ()) {
131
- return new QDBusTrayIcon ();
132
- }
133
111
return Q_NULLPTR;
134
112
}
135
113
#endif
You can’t perform that action at this time.
0 commit comments