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:
Thomas Hartmann
2013-08-02 13:25:45 +02:00
parent 5437faf6c0
commit 1175759f1c

View File

@@ -29,13 +29,13 @@
#include "designdocument.h"
#include "designdocumentview.h"
#include "documentmanager.h"
#include <metainfo.h>
#include <qmlobjectnode.h>
#include <rewritingexception.h>
#include <nodelistproperty.h>
#include <variantproperty.h>
#include <modelnodeoperations.h>
#include <qmldesignerplugin.h>
#include <viewmanager.h>
@@ -322,7 +322,7 @@ void DesignDocument::goIntoSelectedComponent()
if (selectedNodes.count() == 1) {
viewManager().setComponentNode(selectedNodes.first());
ModelNodeOperations::goIntoComponent(selectedNodes.first());
DocumentManager::goIntoComponent(selectedNodes.first());
}
}