diff options
author | Fabien Freling <fabien.freling@nokia.com> | 2011-01-25 14:23:34 (GMT) |
---|---|---|
committer | Fabien Freling <fabien.freling@nokia.com> | 2011-01-26 11:25:48 (GMT) |
commit | 26d25ab46900d84b44e451c2a0a986bfed94a3f4 (patch) | |
tree | bbc66fa6f2d1c4f0126663efbadbaddc1020b686 /src/gui/kernel/qwidget.cpp | |
parent | 85b8631c2f30947e3c8364c903a4f85abb8f11e2 (diff) | |
download | Qt-26d25ab46900d84b44e451c2a0a986bfed94a3f4.zip Qt-26d25ab46900d84b44e451c2a0a986bfed94a3f4.tar.gz Qt-26d25ab46900d84b44e451c2a0a986bfed94a3f4.tar.bz2 |
Move the flushing to [view drawRect:rect]
Instead of flushing by grabbing the Core Graphics
context, we do it directly in the drawRect:
method.
This approach allows us to call flush() many times
and only proceed to flush when the system is
ready.
Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 16f64ff..056aea6 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -324,6 +324,7 @@ QWidgetPrivate::QWidgetPrivate(int version) hasOwnContext = false; isInUnifiedToolbar = false; unifiedSurface = 0; + askedForFlush = false; #endif // QT_MAC_USE_COCOA #ifdef QWIDGET_EXTRA_DEBUG static int count = 0; |