summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_mac.mm
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2011-01-21 14:22:42 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2011-01-21 14:22:42 (GMT)
commit48c18015d1ec7ecd13b4f370cd1deff34b51dbfd (patch)
tree2eb03abbc23a8b507124cabcb71fa80075f58f91 /src/gui/kernel/qwidget_mac.mm
parent0e8458a1d23f6887fe72c6ee567de16f7502dfc0 (diff)
downloadQt-48c18015d1ec7ecd13b4f370cd1deff34b51dbfd.zip
Qt-48c18015d1ec7ecd13b4f370cd1deff34b51dbfd.tar.gz
Qt-48c18015d1ec7ecd13b4f370cd1deff34b51dbfd.tar.bz2
Cocoa/Alien: remove unneded code for scrolling with alien
Diffstat (limited to 'src/gui/kernel/qwidget_mac.mm')
-rw-r--r--src/gui/kernel/qwidget_mac.mm7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 5fe35db..67b72aa 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -4803,13 +4803,8 @@ void QWidgetPrivate::scroll_sys(int dx, int dy, const QRect &qscrollRect)
}
if (isAlien) {
- // Since q is alien, we need to translate the scroll rect:
- QPoint widgetTopLeftInsideNative = nativeWidget->mapFromGlobal(q->mapToGlobal(QPoint()));
- QPoint widgetBottomRightInsideNative = nativeWidget->mapFromGlobal(q->mapToGlobal(q->rect().bottomRight()));
- QPoint scrollTopLeftInsideNative = nativeWidget->mapFromGlobal(q->mapToGlobal(validScrollRect.topLeft()));
- QPoint scrollBottomRightInsideNative = nativeWidget->mapFromGlobal(q->mapToGlobal(validScrollRect.bottomRight()));
-
// Adjust the scroll rect to the location as seen from the native parent:
+ QPoint scrollTopLeftInsideNative = nativeWidget->mapFromGlobal(q->mapToGlobal(validScrollRect.topLeft()));
validScrollRect.moveTo(scrollTopLeftInsideNative);
}