Commit 3768e32f authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.DesignDocument: getting rid of the magical StackedWidget

This StackedWidget is a leftover from the stand alone version.
In the context of Qt Creator this makes no sense anymore.

Change-Id: I6660dd4b43bdc12fa3329d333158fa759bee4d88
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 702030f9
......@@ -334,9 +334,6 @@ void DesignDocument::activateCurrentModel(TextModifier *textModifier)
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
Q_ASSERT(m_documentModel);
if (!plainTextEdit()->parent()) // hack to prevent changing owner of external text edit
m_stackedWidget->addWidget(plainTextEdit());
viewManager().attachRewriterView(textModifier);
Q_ASSERT(m_documentModel);
......
......@@ -145,7 +145,6 @@ private: // functions
Model *createInFileComponentModel();
private: // variables
QScopedPointer<QStackedWidget> m_stackedWidget;
QScopedPointer<Model> m_documentModel;
QScopedPointer<Model> m_inFileComponentModel;
QWeakPointer<Core::IEditor> m_textEditor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment