Skip to content

Commit

Permalink
ticket:4199 Show the Qt::WaitCursor when translating the model.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Dec 29, 2016
1 parent 6dca91b commit 801e73a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp
Expand Up @@ -1215,6 +1215,8 @@ void SimulationDialog::performSimulation()
}
MainWindow::instance()->getOMCProxy()->setCommandLineOptions("+profiling=" + mpProfilingComboBox->currentText());
simulationOptions = createSimulationOptions();
// change the cursor to Qt::WaitCursor
QApplication::setOverrideCursor(Qt::WaitCursor);
// show the progress bar
MainWindow::instance()->getStatusBar()->showMessage(tr("Translating %1.").arg(mClassName));
MainWindow::instance()->getProgressBar()->setRange(0, 0);
Expand All @@ -1223,6 +1225,8 @@ void SimulationDialog::performSimulation()
// hide the progress bar
MainWindow::instance()->hideProgressBar();
MainWindow::instance()->getStatusBar()->clearMessage();
// restore the cursor
QApplication::restoreOverrideCursor();
mIsReSimulate = false;
if (isTranslationSuccessful) {
// check if we can compile using the target compiler
Expand Down

0 comments on commit 801e73a

Please sign in to comment.