get rid of deprecated dialogs and make them more uniform.

This commit is contained in:
2021-11-29 15:39:34 +01:00
parent e56c4bb450
commit 1fb60c0aae
22 changed files with 193 additions and 256 deletions

View File

@@ -167,7 +167,7 @@ PMusrStep::PMusrStep(const char *fln, QWidget *parent) :
fValid = true;
} else {
QString msg = QString("Failed to read msr-file: %1 (status=%2)").arg(fMsrFileName).arg(status);
QMessageBox::critical(0, "ERROR", msg);
QMessageBox::critical(nullptr, "ERROR", msg);
}
int height;
@@ -261,7 +261,7 @@ void PMusrStep::handleCellChanged(int row, int column)
if ((fParamTable->item(row, column)->checkState() == Qt::Checked) &&
((str == "0") || (str == "0.0"))) {
fParamTable->item(row, column)->setCheckState(Qt::Unchecked);
QMessageBox::warning(0, "WARNING", "You cannot select a fixed value (step == 0).");
QMessageBox::warning(nullptr, "WARNING", "You cannot select a fixed value (step == 0).");
}
} else if (column == 2) {
str = fParamTable->item(row, column)->text();