QmlDesigner: Fix Drag&Drop from Library on Mac

mousePos - QPoint(2,2) still returns the current widget, while
-QPoint(3,3) works.
(cherry picked from commit e5076cc5e5)
This commit is contained in:
Kai Koehne
2010-08-24 09:32:56 +02:00
committed by hjk
parent da2bc39edd
commit 97d831e3de

View File

@@ -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())