summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-04-19 07:55:57 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-04-19 07:55:57 (GMT)
commit84f0ae22f4b1e7882f4c0fff2a1f5bc47ebceb37 (patch)
tree0a3416b8f4281939de96f799ea06e91e56fe05cf /src/gui/graphicsview
parent1f12c4824942949f3c030f7b2afd44cfac215417 (diff)
parent3d86aa8f7188bee865bd286fa7dffd80a5c78215 (diff)
downloadQt-84f0ae22f4b1e7882f4c0fff2a1f5bc47ebceb37.zip
Qt-84f0ae22f4b1e7882f4c0fff2a1f5bc47ebceb37.tar.gz
Qt-84f0ae22f4b1e7882f4c0fff2a1f5bc47ebceb37.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2: QMenu: Behavior regression Mac: Graphics View starving user events and sometimes crashes. Fixed a crash on Windows 7 systems with invalid PrinterPorts entries.
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsview_p.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsview_p.h b/src/gui/graphicsview/qgraphicsview_p.h
index 9d3edcb..1c66d07 100644
--- a/src/gui/graphicsview/qgraphicsview_p.h
+++ b/src/gui/graphicsview/qgraphicsview_p.h
@@ -183,8 +183,12 @@ public:
else
QCoreApplication::sendPostedEvents(viewport->window(), QEvent::UpdateRequest);
#else
- QCoreApplication::processEvents(QEventLoop::AllEvents | QEventLoop::ExcludeSocketNotifiers
- | QEventLoop::ExcludeUserInputEvents);
+ // At this point either HIViewSetNeedsDisplay (Carbon) or setNeedsDisplay: YES (Cocoa)
+ // is called, which means there's a pending update request. We want to dispatch it
+ // now because otherwise graphics view updates would require two
+ // round-trips in the event loop before the item is painted.
+ extern void qt_mac_dispatchPendingUpdateRequests(QWidget *);
+ qt_mac_dispatchPendingUpdateRequests(viewport->window());
#endif
}