forked from qt-creator/qt-creator
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: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user