Add "Select All" menu item to the design mode

This commit is contained in:
Marco Bubke
2010-01-25 15:22:08 +01:00
parent b4c6ecee58
commit 666b454295
5 changed files with 36 additions and 0 deletions

View File

@@ -663,6 +663,20 @@ void DesignDocumentController::paste()
}
}
void DesignDocumentController::selectAll()
{
if (!m_d->model)
return;
DesignDocumentControllerView view;
m_d->model->attachView(&view);
QList<ModelNode> allNodesExceptRootNode(view.allModelNodes());
allNodesExceptRootNode.removeOne(view.rootModelNode());
view.setSelectedModelNodes(allNodesExceptRootNode);
}
void DesignDocumentController::showError(const QString &message, QWidget *parent) const
{
if (!parent)