forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user