Commit 75803b08 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Attach the loggerview directly after the model creation.

Now you get all the changes of the rewriter.

Reviewed-by: kkoehne
parent 5e3eb47e
......@@ -262,6 +262,12 @@ QList<RewriterView::Error> DesignDocumentController::loadMaster(QPlainTextEdit *
//m_d->masterModel = Model::create(m_d->textModifier, m_d->searchPath, errors);
m_d->masterModel = Model::create("Qt/Rectangle", 4, 7);
#if defined(VIEWLOGGER)
m_d->viewLogger = new Internal::ViewLogger(m_d->model.data());
m_d->masterModel->attachView(m_d->viewLogger.data());
#endif
m_d->masterModel->setFileUrl(m_d->searchPath);
m_d->subComponentModel = Model::create("Qt/Rectangle", 4, 7);
......@@ -278,10 +284,7 @@ QList<RewriterView::Error> DesignDocumentController::loadMaster(QPlainTextEdit *
m_d->masterModel->attachView(m_d->rewriterView.data());
m_d->model = m_d->masterModel;
#if defined(VIEWLOGGER)
m_d->viewLogger = new Internal::ViewLogger(m_d->model.data());
m_d->masterModel->attachView(m_d->viewLogger.data());
#endif
loadCurrentModel();
......
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