File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
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
+ #if QT_VERSION < 0x060000
34
35
#ifndef QT_NO_SYSTEMTRAYICON
35
36
#include < private/qdbustrayicon_p.h>
36
37
#endif
38
+ #endif
37
39
38
40
QGnomePlatformTheme::QGnomePlatformTheme ()
39
41
{
@@ -109,6 +111,7 @@ QPlatformDialogHelper *QGnomePlatformTheme::createPlatformDialogHelper(QPlatform
109
111
}
110
112
}
111
113
114
+ #if QT_VERSION < 0x060000
112
115
#ifndef QT_NO_SYSTEMTRAYICON
113
116
static bool isDBusTrayAvailable () {
114
117
static bool dbusTrayAvailable = false ;
@@ -123,13 +126,16 @@ static bool isDBusTrayAvailable() {
123
126
return dbusTrayAvailable;
124
127
}
125
128
#endif
129
+ #endif
126
130
127
131
#ifndef QT_NO_SYSTEMTRAYICON
128
132
QPlatformSystemTrayIcon* QGnomePlatformTheme::createPlatformSystemTrayIcon () const
129
133
{
134
+ #if QT_VERSION < 0x060000
130
135
if (isDBusTrayAvailable ()) {
131
136
return new QDBusTrayIcon ();
132
137
}
138
+ #endif
133
139
return Q_NULLPTR;
134
140
}
135
141
#endif
You can’t perform that action at this time.
0 commit comments