forked from qt-creator/qt-creator
QmlDesigner: Do not use ModelNodeOperations outside of DesignerActions
The ModelNodeOperations are an implementation detail of our DesignerActions and should not be used in other places. Change-Id: I495bfd043a6b1dd89952b0e7d2318e429678640b Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -29,13 +29,13 @@
|
|||||||
|
|
||||||
#include "designdocument.h"
|
#include "designdocument.h"
|
||||||
#include "designdocumentview.h"
|
#include "designdocumentview.h"
|
||||||
|
#include "documentmanager.h"
|
||||||
|
|
||||||
#include <metainfo.h>
|
#include <metainfo.h>
|
||||||
#include <qmlobjectnode.h>
|
#include <qmlobjectnode.h>
|
||||||
#include <rewritingexception.h>
|
#include <rewritingexception.h>
|
||||||
#include <nodelistproperty.h>
|
#include <nodelistproperty.h>
|
||||||
#include <variantproperty.h>
|
#include <variantproperty.h>
|
||||||
#include <modelnodeoperations.h>
|
|
||||||
#include <qmldesignerplugin.h>
|
#include <qmldesignerplugin.h>
|
||||||
#include <viewmanager.h>
|
#include <viewmanager.h>
|
||||||
|
|
||||||
@@ -322,7 +322,7 @@ void DesignDocument::goIntoSelectedComponent()
|
|||||||
|
|
||||||
if (selectedNodes.count() == 1) {
|
if (selectedNodes.count() == 1) {
|
||||||
viewManager().setComponentNode(selectedNodes.first());
|
viewManager().setComponentNode(selectedNodes.first());
|
||||||
ModelNodeOperations::goIntoComponent(selectedNodes.first());
|
DocumentManager::goIntoComponent(selectedNodes.first());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user