Adding wait cursor during opening of edit window, which takes a long time.
This commit is contained in:
@@ -177,6 +177,7 @@ void MdiChild::OpenEditWindow(bool wizard=false)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||||
ModelEdit *t = new ModelEdit(radioData, (row - 1), wizard, this);
|
ModelEdit *t = new ModelEdit(radioData, (row - 1), wizard, this);
|
||||||
// TODO if (isNew && !wizard) t->applyBaseTemplate();
|
// TODO if (isNew && !wizard) t->applyBaseTemplate();
|
||||||
t->setWindowTitle(tr("Editing model %1: ").arg(row) + model.name);
|
t->setWindowTitle(tr("Editing model %1: ").arg(row) + model.name);
|
||||||
@@ -185,10 +186,12 @@ void MdiChild::OpenEditWindow(bool wizard=false)
|
|||||||
t->show();
|
t->show();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||||
GeneralEdit *t = new GeneralEdit(radioData, this);
|
GeneralEdit *t = new GeneralEdit(radioData, this);
|
||||||
connect(t, SIGNAL(modelValuesChanged()), this, SLOT(setModified()));
|
connect(t, SIGNAL(modelValuesChanged()), this, SLOT(setModified()));
|
||||||
t->show();
|
t->show();
|
||||||
}
|
}
|
||||||
|
QApplication::restoreOverrideCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MdiChild::newFile()
|
void MdiChild::newFile()
|
||||||
|
|||||||
Reference in New Issue
Block a user