Commit ef839d61 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Change isSingleNodeIsSelected in singleNodeIsSelected

Change-Id: Ife4ce74fe877bf10279bbf68d42e8cf2fd4c8f18
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent d8f36700
......@@ -270,7 +270,7 @@ public:
}
if (m_action->isEnabled()) {
ModelNode parentNode;
if (m_selectionContext.isSingleNodeIsSelected() && !m_selectionContext.currentSingleSelectedNode().isRootNode()) {
if (m_selectionContext.singleNodeIsSelected() && !m_selectionContext.currentSingleSelectedNode().isRootNode()) {
ActionTemplate *selectionAction = new ActionTemplate(QString(), &ModelNodeOperations::select);
selectionAction->setParent(m_menu.data());
......
......@@ -56,7 +56,7 @@ inline bool inBaseState(const SelectionContext &selectionState)
inline bool singleSelection(const SelectionContext &selectionState)
{
return selectionState.isSingleNodeIsSelected();
return selectionState.singleNodeIsSelected();
}
inline bool selectionEnabled(const SelectionContext &selectionState)
......@@ -71,7 +71,7 @@ inline bool selectionNotEmpty(const SelectionContext &selectionState)
inline bool singleSelectionNotRoot(const SelectionContext &selectionState)
{
return selectionState.isSingleNodeIsSelected()
return selectionState.singleNodeIsSelected()
&& !selectionState.currentSingleSelectedNode().isRootNode();
}
......
......@@ -58,7 +58,7 @@ ModelNode SelectionContext::targetNode() const
return m_targetNode;
}
bool SelectionContext::isSingleNodeIsSelected() const
bool SelectionContext::singleNodeIsSelected() const
{
return m_selectedModelNodes.count() == 1;
}
......
......@@ -44,7 +44,7 @@ public:
void setTargetNode(const ModelNode &modelNode);
ModelNode targetNode() const;
bool isSingleNodeIsSelected() const;
bool singleNodeIsSelected() const;
bool isInBaseState() const;
ModelNode currentSingleSelectedNode() const;
......
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