summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qfileiconprovider.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-03-15 15:05:59 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-15 04:57:15 +0200
commit49e7ff443bc4f70164209b59770a901bf3ac3eab (patch)
tree8ce1dd9d20cf5a8c42c73521af0f9fc7beec3507 /src/widgets/itemviews/qfileiconprovider.cpp
parentf31b324a2478ff8b2158d0af4661eba585a0848c (diff)
Enable Gtk file icons
This needs some build system fixes to let widgets depend on the platform support library (and be built after it). Change-Id: I6f5b878971d1002a18e2fd66db4f34ffd0ac939a Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
Diffstat (limited to 'src/widgets/itemviews/qfileiconprovider.cpp')
-rw-r--r--src/widgets/itemviews/qfileiconprovider.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/itemviews/qfileiconprovider.cpp b/src/widgets/itemviews/qfileiconprovider.cpp
index 5356b67f99..b7d317a9c2 100644
--- a/src/widgets/itemviews/qfileiconprovider.cpp
+++ b/src/widgets/itemviews/qfileiconprovider.cpp
@@ -58,9 +58,9 @@
# include <private/qt_cocoa_helpers_mac_p.h>
#endif
-#if defined(Q_WS_X11) && !defined(Q_NO_STYLE_GTK)
+#if defined(Q_OS_UNIX) && !defined(QT_NO_STYLE_GTK)
# include <private/qgtkstyle_p.h>
-# include <private/qt_x11_p.h>
+# include <QtPlatformSupport/private/qgenericunixservices_p.h>
#endif
#ifndef SHGFI_ADDOVERLAYS
@@ -399,8 +399,8 @@ QIcon QFileIconProvider::icon(const QFileInfo &info) const
{
Q_D(const QFileIconProvider);
-#if defined(Q_WS_X11) && !defined(QT_NO_STYLE_GTK)
- if (X11->desktopEnvironment == DE_GNOME) {
+#if defined(Q_OS_UNIX) && !defined(QT_NO_STYLE_GTK)
+ if (QGenericUnixServices::desktopEnvironment() == QGenericUnixServices::DE_GNOME) {
QIcon gtkIcon = QGtkStylePrivate::getFilesystemIcon(info);
if (!gtkIcon.isNull())
return gtkIcon;