Gui: QVariant::Type is deprecated, use QMetaType::Type
This commit is contained in:
@@ -347,9 +347,9 @@ PrefComboBox::~PrefComboBox()
|
||||
{
|
||||
}
|
||||
|
||||
QVariant::Type PrefComboBox::getParamType() const
|
||||
QMetaType::Type PrefComboBox::getParamType() const
|
||||
{
|
||||
return property("prefType").type();
|
||||
return static_cast<QMetaType::Type>(property("prefType").userType());
|
||||
}
|
||||
|
||||
void PrefComboBox::restorePreferences()
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user