[Gui]fix canConvert for Qt4

This commit is contained in:
wandererfan
2020-05-09 19:32:23 -04:00
committed by WandererFan
parent 8b9ca51d7d
commit 10bc0c0875

View File

@@ -64,7 +64,11 @@ 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());
}
}