OSDN Git Service

QmlDesigner.FormEditor: Resize only for hovering
authorMarco Bubke <marco.bubke@nokia.com>
Thu, 3 Feb 2011 17:49:14 +0000 (18:49 +0100)
committerMarco Bubke <marco.bubke@nokia.com>
Thu, 3 Feb 2011 20:49:38 +0000 (21:49 +0100)
src/plugins/qmldesigner/components/formeditor/resizetool.cpp

index 9b2126a..bf28469 100644 (file)
@@ -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);