fix build with Qt < 5.14

This commit is contained in:
Denis Rouzaud 2020-04-30 06:59:13 +02:00
parent 9488f06025
commit baa7f51e37

View File

@ -67,7 +67,11 @@ void QgsFeatureFilterModel::requestToReloadCurrentFeature( QgsFeatureRequest &re
QSet<QString> QgsFeatureFilterModel::requestedAttributes() const
{
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
return mIdentifierFields.toSet();
#else
return QSet<QString>( mIdentifierFields.begin(), mIdentifierFields.end() );
#endif
}
QVariant QgsFeatureFilterModel::entryIdentifier( const QgsFeatureExpressionValuesGatherer::Entry &entry ) const