forked from qt-creator/qt-creator
QmlDesigner: remove DesignDocument::changeToExternalSubComponent()
This function did nothing but call EditorManager::openEditor(), so we can call it directly instead. It was not used consistently anyway. Change-Id: I639ef346164be9260e887faac5dc6651ccfd92c5 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -306,11 +306,6 @@ void DesignDocument::changeToSubComponent(const ModelNode &componentNode)
|
||||
attachRewriterToModel();
|
||||
}
|
||||
|
||||
void DesignDocument::changeToExternalSubComponent(const QString &fileName)
|
||||
{
|
||||
Core::EditorManager::openEditor(fileName, Core::Id(), Core::EditorManager::DoNotMakeVisible);
|
||||
}
|
||||
|
||||
void DesignDocument::attachRewriterToModel()
|
||||
{
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
|
||||
Reference in New Issue
Block a user