mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
for call of QVariant ctor
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
This commit is contained in:
parent
8343e3f544
commit
1a73bf3f2c
@ -599,7 +599,7 @@ QVariant::Type QgsVariantUtils::metaTypeToVariantType( QMetaType::Type metaType
|
||||
QVariant QgsVariantUtils::createVariant( QMetaType::Type metaType )
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
return QgsVariantUtils::metaTypeToVariantType( metaType );
|
||||
return QVariant( QgsVariantUtils::metaTypeToVariantType( metaType ) );
|
||||
#else
|
||||
return QVariant( QMetaType( metaType ) );
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user