summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-12-20 13:05:53 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-12-20 13:48:16 (GMT)
commitd9dbdb1afde441c8ab87f42b4a5e0e29ad54480c (patch)
treee590b34fde96a396463354a637344935e08d8c6f /src/gui/widgets
parent545f7cc833804f975e520eb27409ba0972a126f7 (diff)
downloadQt-d9dbdb1afde441c8ab87f42b4a5e0e29ad54480c.zip
Qt-d9dbdb1afde441c8ab87f42b4a5e0e29ad54480c.tar.gz
Qt-d9dbdb1afde441c8ab87f42b4a5e0e29ad54480c.tar.bz2
Fixed QStatusBar not to repaint itself too early
When the toplevel containing a statusbar is initially shown, QStatusBar will repaint itself way too early - repaint() is called from the LayoutRequest event causing a whole window repaint before the window was resized to the proper size. This caused Qt Creator to paint itself in small size in a maximized window on its startup. Task-number: QTBUG-14547 Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qstatusbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qstatusbar.cpp b/src/gui/widgets/qstatusbar.cpp
index c88d2a1..c60913e 100644
--- a/src/gui/widgets/qstatusbar.cpp
+++ b/src/gui/widgets/qstatusbar.cpp
@@ -575,7 +575,7 @@ void QStatusBar::reformat()
d->savedStrut = maxH;
vbox->addSpacing(2);
d->box->activate();
- repaint();
+ update();
}
/*!