QmlDesigner: Fix drag and drop
The release mouse event does not come through if we start a drag.
There was already a workaround that stopped working with 5.8 and
did rely on private API.
I removed all usage of private API and added a simple workaround
that synthesises a mouse release event.
The actual execution of the drag is now asynchronous to
ensure the release event is delivered properly.
I removed all dependencies on private API in the designer.
In Qt 5.9 the issue seems to be fixed in Qt.
The workaround does not seem to get in the way of the fix.
Eventually, the workaround can be removed.
Change-Id: I9b45b255da5e44c26aba2acf4a42f88537126f75
Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
Showing
- share/qtcreator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml 1 addition, 5 deletions...reator/qmldesigner/itemLibraryQmlSources/ItemDelegate.qml
- src/plugins/qmldesigner/components/itemlibrary/itemlibrarywidget.cpp 9 additions, 14 deletions.../qmldesigner/components/itemlibrary/itemlibrarywidget.cpp
- src/plugins/qmldesigner/components/itemlibrary/itemlibrarywidget.h 1 addition, 1 deletion...ns/qmldesigner/components/itemlibrary/itemlibrarywidget.h
- src/plugins/qmldesigner/qmldesignerplugin.pro 0 additions, 1 deletionsrc/plugins/qmldesigner/qmldesignerplugin.pro
Please register or sign in to comment