Disable Qt::WaitCursor.
--HG-- branch : feature
This commit is contained in:
parent
381adf0ba0
commit
93f62d9ee9
|
@ -51,11 +51,19 @@ DialogEditWrongFormula::DialogEditWrongFormula(const VContainer *data, QWidget *
|
||||||
|
|
||||||
connect(ui->toolButtonEqual, &QPushButton::clicked, this, &DialogEditWrongFormula::EvalFormula);
|
connect(ui->toolButtonEqual, &QPushButton::clicked, this, &DialogEditWrongFormula::EvalFormula);
|
||||||
connect(ui->lineEditFormula, &QLineEdit::textChanged, this, &DialogEditWrongFormula::FormulaChanged);
|
connect(ui->lineEditFormula, &QLineEdit::textChanged, this, &DialogEditWrongFormula::FormulaChanged);
|
||||||
|
|
||||||
|
//Disable Qt::WaitCursor
|
||||||
|
#ifndef QT_NO_CURSOR
|
||||||
|
QApplication::restoreOverrideCursor();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
DialogEditWrongFormula::~DialogEditWrongFormula()
|
DialogEditWrongFormula::~DialogEditWrongFormula()
|
||||||
{
|
{
|
||||||
|
#ifndef QT_NO_CURSOR
|
||||||
|
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||||
|
#endif
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,10 @@ void VException::CriticalMessageBox(const QString &situation, QWidget * parent)
|
||||||
QGridLayout* layout = static_cast<QGridLayout*>(msgBox.layout());
|
QGridLayout* layout = static_cast<QGridLayout*>(msgBox.layout());
|
||||||
Q_CHECK_PTR(layout);
|
Q_CHECK_PTR(layout);
|
||||||
layout->addItem(horizontalSpacer, layout->rowCount(), 0, 1, layout->columnCount());
|
layout->addItem(horizontalSpacer, layout->rowCount(), 0, 1, layout->columnCount());
|
||||||
|
//Disable Qt::WaitCursor for error message.
|
||||||
|
#ifndef QT_NO_CURSOR
|
||||||
|
QApplication::restoreOverrideCursor();
|
||||||
|
#endif
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user