Commit e5076cc5 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Fix Drag&Drop from Library on Mac

mousePos - QPoint(2,2) still returns the current widget, while
-QPoint(3,3) works.
parent 56f73542
......@@ -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())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment