[GUI] Remove code for Qt < 5.9
This commit is contained in:
@@ -65,11 +65,7 @@ DlgExpressionInput::DlgExpressionInput(const App::ObjectIdentifier & _path,
|
||||
}
|
||||
else {
|
||||
QVariant text = parent->property("text");
|
||||
#if QT_VERSION >= 0x050000
|
||||
if (text.canConvert(QMetaType::QString)) {
|
||||
#else
|
||||
if (text.canConvert(QVariant::String)) {
|
||||
#endif
|
||||
ui->expression->setText(text.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user