Qt: remove some more leftovers of Qt4

This commit is contained in:
wmayer
2022-03-19 23:27:28 +01:00
parent 13e09b36f8
commit a999a249e3
13 changed files with 6 additions and 103 deletions

View File

@@ -129,11 +129,7 @@ bool TaskDlgFeatureParameters::accept() {
Gui::Command::commitCommand();
} catch (const Base::Exception& e) {
// Generally the only thing that should fail is feature->isValid() others should be fine
#if (QT_VERSION >= 0x050000)
QString errorText = QApplication::translate(feature->getTypeId().getName(), e.what());
#else
QString errorText = QApplication::translate(feature->getTypeId().getName(), e.what(), 0, QApplication::UnicodeUTF8);
#endif
QMessageBox::warning(Gui::getMainWindow(), tr("Input error"), errorText);
return false;
}