summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qgtkstyle.h
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2009-11-03 15:17:31 (GMT)
committerRobert Griebl <rgriebl@trolltech.com>2009-11-03 20:55:53 (GMT)
commitdb3d38df589aac5eb8098a7ed74257b9ecd6b8a1 (patch)
tree31651b491dc1edb37e4748f90f0cae011881a969 /src/gui/styles/qgtkstyle.h
parent54da8a50c1ab643c0e9903175a18414f8ec76fef (diff)
downloadQt-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/styles/qgtkstyle.h')
-rw-r--r--src/gui/styles/qgtkstyle.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/styles/qgtkstyle.h b/src/gui/styles/qgtkstyle.h
index 20c2b52..5c3bad1 100644
--- a/src/gui/styles/qgtkstyle.h
+++ b/src/gui/styles/qgtkstyle.h
@@ -45,6 +45,7 @@
#include <QtGui/QCleanlooksStyle>
#include <QtGui/QPalette>
#include <QtGui/QFont>
+#include <QtGui/QFileDialog>
QT_BEGIN_HEADER
@@ -64,6 +65,8 @@ class Q_GUI_EXPORT QGtkStyle : public QCleanlooksStyle
public:
QGtkStyle();
+ QGtkStyle(QGtkStylePrivate &dd);
+
~QGtkStyle();
QPalette standardPalette() const;
@@ -107,12 +110,15 @@ public:
void unpolish(QWidget *widget);
void unpolish(QApplication *app);
+ static bool getGConfBool(const QString &key, bool fallback = 0);
+ static QString getGConfString(const QString &key, const QString &fallback = QString());
+
+
protected Q_SLOTS:
QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option,
const QWidget *widget = 0) const;
};
-
#endif //!defined(QT_NO_STYLE_QGTK)
QT_END_NAMESPACE