diff options
author | Marco Bubke <marco.bubke@digia.com> | 2013-09-17 14:43:24 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@digia.com> | 2013-09-18 13:19:38 +0200 |
commit | 3130aacc82c29b1435de7ec93b5266872b66ce7a (patch) | |
tree | f52f6c7c586caab748faf54bc012f580b1759d8d /src/plugins/qmldesigner/components/formeditor/movetool.cpp | |
parent | 2d8c0dd4804a841c3f0649aecb16f44beeb78467 (diff) | |
download | qt-creator-3130aacc82c29b1435de7ec93b5266872b66ce7a.tar.gz |
QmlDesigner: Add ContentNotEditableIndicator
If you hover over a tab the content will be visulized as non editable.
Change-Id: If7fcc8aaa319e0f952f501f6e9e2fc767b89b636
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/movetool.cpp')
-rw-r--r-- | src/plugins/qmldesigner/components/formeditor/movetool.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/movetool.cpp b/src/plugins/qmldesigner/components/formeditor/movetool.cpp index 7ca3fc7117..8a6132d406 100644 --- a/src/plugins/qmldesigner/components/formeditor/movetool.cpp +++ b/src/plugins/qmldesigner/components/formeditor/movetool.cpp @@ -48,7 +48,8 @@ MoveTool::MoveTool(FormEditorView *editorView) m_selectionIndicator(editorView->scene()->manipulatorLayerItem()), m_resizeIndicator(editorView->scene()->manipulatorLayerItem()), m_anchorIndicator(editorView->scene()->manipulatorLayerItem()), - m_bindingIndicator(editorView->scene()->manipulatorLayerItem()) + m_bindingIndicator(editorView->scene()->manipulatorLayerItem()), + m_contentNotEditableIndicator(editorView->scene()->manipulatorLayerItem()) { m_selectionIndicator.setCursor(Qt::SizeAllCursor); } @@ -67,6 +68,7 @@ void MoveTool::clear() m_resizeIndicator.clear(); m_anchorIndicator.clear(); m_bindingIndicator.clear(); + m_contentNotEditableIndicator.clear(); AbstractFormEditorTool::clear(); } @@ -130,6 +132,8 @@ void MoveTool::hoverMoveEvent(const QList<QGraphicsItem*> &itemList, view()->changeToSelectionTool(); return; } + + m_contentNotEditableIndicator.setItems(toFormEditorItemList(itemList)); } void MoveTool::keyPressEvent(QKeyEvent *event) |