From 48c18015d1ec7ecd13b4f370cd1deff34b51dbfd Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Fri, 21 Jan 2011 15:22:42 +0100 Subject: Cocoa/Alien: remove unneded code for scrolling with alien --- src/gui/kernel/qwidget_mac.mm | 7 +------ 1 file changed, 1 insertion(+), 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); } -- cgit v0.12