forked from qt-creator/qt-creator
Add "Select All" menu item to the design mode
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user