Qt: remove some more leftovers of Qt4
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user