diff --git a/src/Gui/PrefWidgets.cpp b/src/Gui/PrefWidgets.cpp index cfa45ba6fc..0c06e9ea82 100644 --- a/src/Gui/PrefWidgets.cpp +++ b/src/Gui/PrefWidgets.cpp @@ -347,9 +347,9 @@ PrefComboBox::~PrefComboBox() { } -QVariant::Type PrefComboBox::getParamType() const +QMetaType::Type PrefComboBox::getParamType() const { - return property("prefType").type(); + return static_cast(property("prefType").userType()); } void PrefComboBox::restorePreferences() diff --git a/src/Gui/PrefWidgets.h b/src/Gui/PrefWidgets.h index cb6cfd4eb1..d1f1b5ede3 100644 --- a/src/Gui/PrefWidgets.h +++ b/src/Gui/PrefWidgets.h @@ -239,7 +239,7 @@ protected: // restore from/save to parameters void restorePreferences() override; void savePreferences() override; - virtual QVariant::Type getParamType() const; + virtual QMetaType::Type getParamType() const; private: QVariant m_Default;