diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2011-01-24 14:44:48 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2011-01-24 14:44:48 (GMT) |
commit | f1262bdf81251d488c6fe8c1a00325a81654844e (patch) | |
tree | f40145704fb0d88d2e243902f787701388a4fdb4 /src/gui/kernel/qt_cocoa_helpers_mac.mm | |
parent | 673da830f6f83438e4b52296dbdc61a33112e4ec (diff) | |
download | Qt-f1262bdf81251d488c6fe8c1a00325a81654844e.zip Qt-f1262bdf81251d488c6fe8c1a00325a81654844e.tar.gz Qt-f1262bdf81251d488c6fe8c1a00325a81654844e.tar.bz2 |
Cocoa: add scroll optimization when scrolling both hor and ver
Diffstat (limited to 'src/gui/kernel/qt_cocoa_helpers_mac.mm')
-rw-r--r-- | src/gui/kernel/qt_cocoa_helpers_mac.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_cocoa_helpers_mac.mm b/src/gui/kernel/qt_cocoa_helpers_mac.mm index 35b9d52..ddbf53f 100644 --- a/src/gui/kernel/qt_cocoa_helpers_mac.mm +++ b/src/gui/kernel/qt_cocoa_helpers_mac.mm @@ -1724,6 +1724,12 @@ void qt_mac_post_retranslateAppMenu() #endif } +QWidgetPrivate *QMacScrollOptimization::_target = 0; +bool QMacScrollOptimization::_inWheelEvent = false; +int QMacScrollOptimization::_dx = 0; +int QMacScrollOptimization::_dy = 0; +QRect QMacScrollOptimization::_scrollRect = QRect(0, 0, -1, -1); + #ifdef QT_MAC_USE_COCOA // This method implements the magic for the drawRectSpecial method. // We draw a line at the upper edge of the content view in order to |