Commit 8ae0af4f authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.documentController: hourglass for loading loading progress

Task-number: QTCREATORBUG-3733
parent eeec6711
......@@ -78,6 +78,7 @@
#include <QtGui/QMessageBox>
#include <QtGui/QUndoStack>
#include <QtGui/QPlainTextEdit>
#include <QtGui/QApplication>
enum {
debug = false
......@@ -366,6 +367,8 @@ void DesignDocumentController::changeCurrentModelTo(const ModelNode &componentNo
void DesignDocumentController::loadCurrentModel()
{
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
Q_ASSERT(m_d->masterModel);
Q_ASSERT(m_d->model);
m_d->model->setMasterModel(m_d->masterModel.data());
......@@ -399,6 +402,7 @@ void DesignDocumentController::loadCurrentModel()
m_d->documentLoaded = true;
Q_ASSERT(m_d->masterModel);
QApplication::restoreOverrideCursor();
}
QList<RewriterView::Error> DesignDocumentController::loadMaster(const QByteArray &qml)
......
Supports Markdown
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