summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-26 10:14:10 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-26 10:53:33 (GMT)
commitb5ae51f7b9a127b10034aa76dd631ac94eb75347 (patch)
treed6868049e5fa0e37cf210b272776647c10fcfdc9
parent81143869c2d2a9246d2247f1985e8ec00074391f (diff)
downloadQt-b5ae51f7b9a127b10034aa76dd631ac94eb75347.zip
Qt-b5ae51f7b9a127b10034aa76dd631ac94eb75347.tar.gz
Qt-b5ae51f7b9a127b10034aa76dd631ac94eb75347.tar.bz2
Fix warning.
The member need to be initialized in the same order as in which they are declared Reviewed-by: Thierry
-rw-r--r--src/gui/kernel/qwidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 7e88e9f..62d0848 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -187,6 +187,9 @@ QWidgetPrivate::QWidgetPrivate(int version)
, extraPaintEngine(0)
, polished(0)
, graphicsEffect(0)
+#if !defined(QT_NO_IM)
+ , imHints(Qt::ImhNone)
+#endif
, inheritedFontResolveMask(0)
, inheritedPaletteResolveMask(0)
, leftmargin(0)
@@ -217,7 +220,6 @@ QWidgetPrivate::QWidgetPrivate(int version)
, window_event(0)
, qd_hd(0)
#endif
- ,imHints(Qt::ImhNone)
{
if (!qApp) {
qFatal("QWidget: Must construct a QApplication before a QPaintDevice");