From ef95b8e01dea60c3b04ea9146327e39c36102454 Mon Sep 17 00:00:00 2001 From: Kjell Kernen Date: Wed, 26 Mar 2014 10:30:53 +0100 Subject: [PATCH] Adding wait cursor during opening of edit window, which takes a long time. --- companion/src/mdichild.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index e6174a1c2..79a1e25ca 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -177,6 +177,7 @@ void MdiChild::OpenEditWindow(bool wizard=false) } } } + QApplication::setOverrideCursor(Qt::WaitCursor); ModelEdit *t = new ModelEdit(radioData, (row - 1), wizard, this); // TODO if (isNew && !wizard) t->applyBaseTemplate(); t->setWindowTitle(tr("Editing model %1: ").arg(row) + model.name); @@ -185,10 +186,12 @@ void MdiChild::OpenEditWindow(bool wizard=false) t->show(); } else { + QApplication::setOverrideCursor(Qt::WaitCursor); GeneralEdit *t = new GeneralEdit(radioData, this); connect(t, SIGNAL(modelValuesChanged()), this, SLOT(setModified())); t->show(); } + QApplication::restoreOverrideCursor(); } void MdiChild::newFile()