summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicswidget_p.h
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-03-24 09:39:52 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-03-24 09:51:32 (GMT)
commit22d472c17167c4ca8df5678842768ab63b7baadd (patch)
tree9284e29c3ba3c8bb3a285c06a20a6e0541c4d33e /src/gui/graphicsview/qgraphicswidget_p.h
parente773b0486a4784994a900c03a2620baf2775ac9d (diff)
downloadQt-22d472c17167c4ca8df5678842768ab63b7baadd.zip
Qt-22d472c17167c4ca8df5678842768ab63b7baadd.tar.gz
Qt-22d472c17167c4ca8df5678842768ab63b7baadd.tar.bz2
Do not cache the sizeHint() while we're in QGraphicsWidget's constructor.
Do not send a QFontChange event before the item has been polished. This is because we cannot call a virtual function while we're in the ctor. This is basically the same as how we do it in QWidget. Task-number: 246215 Reviewed-by: alexis
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicswidget_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget_p.h b/src/gui/graphicsview/qgraphicswidget_p.h
index afa6812..455a129 100644
--- a/src/gui/graphicsview/qgraphicswidget_p.h
+++ b/src/gui/graphicsview/qgraphicswidget_p.h
@@ -85,6 +85,7 @@ public:
inheritedPaletteResolveMask(0),
inheritedFontResolveMask(0),
inSetGeometry(0),
+ polished(0),
focusPolicy(Qt::NoFocus),
focusNext(0),
focusPrev(0),
@@ -193,6 +194,7 @@ public:
}
quint32 attributes : 10;
quint32 inSetGeometry : 1;
+ quint32 polished: 1;
// Focus
Qt::FocusPolicy focusPolicy;