diff options
author | Kai Koehne <[email protected]> | 2010-08-24 09:32:56 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2010-08-24 09:46:09 +0200 |
commit | 97d831e3dedddb80d0ccf1c298dc35e6e6f68be9 (patch) | |
tree | e1caadb64d5b8e71f22d596f903c4105bfb66e01 | |
parent | da2bc39edd3d1bd7931ae32cf8cfcf41b7d67f30 (diff) |
QmlDesigner: Fix Drag&Drop from Library on Macv2.0.1
mousePos - QPoint(2,2) still returns the current widget, while
-QPoint(3,3) works.
(cherry picked from commit e5076cc5e50be46b2f2a2307660e5e8603b780ad)
-rw-r--r-- | src/plugins/qmldesigner/components/itemlibrary/customdraganddrop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/itemlibrary/customdraganddrop.cpp b/src/plugins/qmldesigner/components/itemlibrary/customdraganddrop.cpp index 1672e9947fe..9a444be3090 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/customdraganddrop.cpp +++ b/src/plugins/qmldesigner/components/itemlibrary/customdraganddrop.cpp @@ -106,7 +106,7 @@ void CustomDragAndDropIcon::mouseMoveEvent(QMouseEvent *event) else { move(-1000, -1000); //if no top level widget is found we are out of the main window } - QWidget* target = QApplication::widgetAt(globalPos - QPoint(2,2)); //-(2, 2) because: + QWidget* target = QApplication::widgetAt(globalPos - QPoint(3,3)); //-(3, 3) because: // otherwise we just get this widget if (target != m_oldTarget) { if (CustomDragAndDrop::isAccepted()) |