diff options
author | Robert Griebl <rgriebl@trolltech.com> | 2009-11-03 15:17:31 (GMT) |
---|---|---|
committer | Robert Griebl <rgriebl@trolltech.com> | 2009-11-03 20:55:53 (GMT) |
commit | db3d38df589aac5eb8098a7ed74257b9ecd6b8a1 (patch) | |
tree | 31651b491dc1edb37e4748f90f0cae011881a969 /src/gui/kernel/qapplication_x11.cpp | |
parent | 54da8a50c1ab643c0e9903175a18414f8ec76fef (diff) | |
download | Qt-db3d38df589aac5eb8098a7ed74257b9ecd6b8a1.zip Qt-db3d38df589aac5eb8098a7ed74257b9ecd6b8a1.tar.gz Qt-db3d38df589aac5eb8098a7ed74257b9ecd6b8a1.tar.bz2 |
QGtkStyle refactoring
The QGtk class has been refactored into a private d class for QGtkStyle.
This allows us to re-use a lot of code for the Maemo5 style without changing
a single line in QGtkStyle itself plus we can easily add virtual functions
where the two styles need to behave different.
There shouldn't be any new functionality added (or old functionality lost) by
this commit.
Reviewed-By: jbache
Reviewed-By: Ralf Engels
Diffstat (limited to 'src/gui/kernel/qapplication_x11.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_x11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_x11.cpp b/src/gui/kernel/qapplication_x11.cpp index b0ab760..b71ae73 100644 --- a/src/gui/kernel/qapplication_x11.cpp +++ b/src/gui/kernel/qapplication_x11.cpp @@ -79,7 +79,7 @@ #include <private/qcolor_p.h> #include <private/qcursor_p.h> #include <private/qiconloader_p.h> -#include <private/gtksymbols_p.h> +#include <qgtkstyle.h> #include "qstyle.h" #include "qmetaobject.h" #include "qtimer.h" @@ -2299,7 +2299,7 @@ void qt_init(QApplicationPrivate *priv, int, #if !defined(QT_NO_STYLE_GTK) if (X11->desktopEnvironment == DE_GNOME) { - static bool menusHaveIcons = QGtk::getGConfBool(QLatin1String("/desktop/gnome/interface/menus_have_icons"), true); + static bool menusHaveIcons = QGtkStyle::getGConfBool(QLatin1String("/desktop/gnome/interface/menus_have_icons"), true); QApplication::setAttribute(Qt::AA_DontShowIconsInMenus, !menusHaveIcons); } #endif |