summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcocoaview_mac.mm
diff options
context:
space:
mode:
authorFabien Freling <fabien.freling@nokia.com>2010-02-12 15:49:38 (GMT)
committerFabien Freling <fabien.freling@nokia.com>2010-02-12 15:49:38 (GMT)
commitc04fd421375562f2db8ab89d7bb9509d9b655dd2 (patch)
tree411853760626883241748157b8e3dca1b272722f /src/gui/kernel/qcocoaview_mac.mm
parent441aff9d01a1530d2b187098c7c47bc683116a66 (diff)
parent3fb70a8beea1dda58e50831edc5dd9073b899f72 (diff)
downloadQt-c04fd421375562f2db8ab89d7bb9509d9b655dd2.zip
Qt-c04fd421375562f2db8ab89d7bb9509d9b655dd2.tar.gz
Qt-c04fd421375562f2db8ab89d7bb9509d9b655dd2.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1
Diffstat (limited to 'src/gui/kernel/qcocoaview_mac.mm')
-rw-r--r--src/gui/kernel/qcocoaview_mac.mm9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm
index aa00e97..c3fbaad 100644
--- a/src/gui/kernel/qcocoaview_mac.mm
+++ b/src/gui/kernel/qcocoaview_mac.mm
@@ -474,10 +474,11 @@ extern "C" {
- (void)drawRect:(NSRect)aRect
{
if (QApplicationPrivate::graphicsSystem() != 0) {
- if (QWidgetBackingStore *bs = qwidgetprivate->maybeBackingStore())
- bs->markDirty(qwidget->rect(), qwidget);
- qwidgetprivate->syncBackingStore(qwidget->rect());
- return;
+ if (QWidgetBackingStore *bs = qwidgetprivate->maybeBackingStore()) {
+ // Drawing is handled on the window level
+ // See qcocoasharedwindowmethods_mac_p.
+ return;
+ }
}
CGContextRef cg = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
qwidgetprivate->hd = cg;