summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-08-24 09:32:56 +0200
committerKai Koehne <kai.koehne@nokia.com>2010-08-24 09:35:23 +0200
commite5076cc5e50be46b2f2a2307660e5e8603b780ad (patch)
treeb0d2f48df1d474ff8ac0096d446f4bcf0d1a840d
parent56f735425af32e4ffdfc959bc90a2ae85f6b4544 (diff)
downloadqt-creator-e5076cc5e50be46b2f2a2307660e5e8603b780ad.tar.gz
QmlDesigner: Fix Drag&Drop from Library on Mac
mousePos - QPoint(2,2) still returns the current widget, while -QPoint(3,3) works.
-rw-r--r--src/plugins/qmldesigner/components/itemlibrary/customdraganddrop.cpp2
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 1672e9947f..9a444be309 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())