summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qunifiedtoolbarsurface_mac.cpp
diff options
context:
space:
mode:
authorFabien Freling <fabien.freling@nokia.com>2011-01-26 15:29:28 (GMT)
committerFabien Freling <fabien.freling@nokia.com>2011-01-27 09:20:13 (GMT)
commite10a438a90b369c894b5f39cc1ab61ae68ff200c (patch)
tree1c005785e63e53084b35525f8f6e2e2fd213bbc6 /src/gui/painting/qunifiedtoolbarsurface_mac.cpp
parentc710993bc1653e85f598ea099de2eb23904f0bcf (diff)
downloadQt-e10a438a90b369c894b5f39cc1ab61ae68ff200c.zip
Qt-e10a438a90b369c894b5f39cc1ab61ae68ff200c.tar.gz
Qt-e10a438a90b369c894b5f39cc1ab61ae68ff200c.tar.bz2
Force the display: in the unified toolbar.
Instead of calling setNeedsDisplay:, we call have to call display: to avoid flickering. Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui/painting/qunifiedtoolbarsurface_mac.cpp')
-rw-r--r--src/gui/painting/qunifiedtoolbarsurface_mac.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/painting/qunifiedtoolbarsurface_mac.cpp b/src/gui/painting/qunifiedtoolbarsurface_mac.cpp
index 4c027f8..5f52679 100644
--- a/src/gui/painting/qunifiedtoolbarsurface_mac.cpp
+++ b/src/gui/painting/qunifiedtoolbarsurface_mac.cpp
@@ -141,7 +141,9 @@ void QUnifiedToolbarSurface::flush(QWidget *widget, const QRegion &rgn, const QP
return;
widget->d_func()->flushRequested = true;
- qt_mac_setneedsdisplay(widget);
+
+ // We call display: directly to avoid flickering in the toolbar.
+ qt_mac_display(widget);
}
void QUnifiedToolbarSurface::prepareBuffer(QImage::Format format, QWidget *widget)