aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/formeditor/selectiontool.h
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2017-06-30 18:20:56 +0200
committerTim Jenssen <tim.jenssen@qt.io>2017-07-19 12:16:41 +0000
commit9c2f2bed3a5187b259f51a3138baf220b9f3a148 (patch)
tree09e2bd21e156e22a148e008a159998598e77c393 /src/plugins/qmldesigner/components/formeditor/selectiontool.h
parent04f19cf5732c30fabd62375cbf692e6286d62127 (diff)
QmlDesigner: Refine selection
This is a major overhaul of the slection logic. We do not change to the move tool automatically once the curser enters the selected item. This allows selection of items that are at the same position as the current selected item. The selected item can still be moved if there is no pissible candidate for selection. Also the border and gizmo always allows an item to be moved, if the item is fully covered by another item. Change-Id: Ic97a2bf23f33fcc5e209248aeb2f97df67bd23e1 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/selectiontool.h')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/selectiontool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/selectiontool.h b/src/plugins/qmldesigner/components/formeditor/selectiontool.h
index 0a5945c7356..154a57f2239 100644
--- a/src/plugins/qmldesigner/components/formeditor/selectiontool.h
+++ b/src/plugins/qmldesigner/components/formeditor/selectiontool.h
@@ -89,6 +89,7 @@ private:
ContentNotEditableIndicator m_contentNotEditableIndicator;
QTime m_mousePressTimer;
QCursor m_cursor;
+ bool m_itemAlreadySelected = false;
};
} // namespace QmlDesigner