Commit 5d53aa14 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.FormEditor: Resize only for hovering

parent cc9f5a01
......@@ -93,8 +93,11 @@ void ResizeTool::mouseMoveEvent(const QList<QGraphicsItem*> &,
void ResizeTool::hoverMoveEvent(const QList<QGraphicsItem*> &itemList,
QGraphicsSceneMouseEvent * /*event*/)
{
if (itemList.isEmpty())
return;
if (itemList.isEmpty()) {
view()->changeToSelectionTool();
return;
}
ResizeHandleItem* resizeHandle = ResizeHandleItem::fromGraphicsItem(itemList.first());
if (resizeHandle && resizeHandle->resizeController().isValid()) {
m_resizeManipulator.setHandle(resizeHandle);
......
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