Commit 05de6575 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.documentController: cleanup

Change-Id: Ia784d21934baa83c9d8527b46b31a48be6324d2a
Reviewed-on: http://codereview.qt.nokia.com/725

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent f6a2e0ad
......@@ -176,6 +176,17 @@ void DesignDocumentController::attachNodeInstanceView()
if (m_d->nodeInstanceView) {
model()->attachView(m_d->nodeInstanceView.data());
}
if (m_d->formEditorView) {
m_d->formEditorView->resetView();
}
}
void DesignDocumentController::changeToMasterModel()
{
m_d->model->detachView(m_d->rewriterView.data());
m_d->rewriterView->setTextModifier(m_d->textModifier);
m_d->model = m_d->masterModel;
m_d->model->attachView(m_d->rewriterView.data());
}
QWidget *DesignDocumentController::centralWidget() const
......
......@@ -136,6 +136,8 @@ private slots:
private:
void detachNodeInstanceView();
void attachNodeInstanceView();
void changeToMasterModel();
QWidget *centralWidget() const;
QString pathToQt() const;
......
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