Qt < 5.6 compatibility

This commit is contained in:
Matthias Kuhn 2017-10-25 09:01:44 +02:00
parent a2b79d47b9
commit 035fc46ada
No known key found for this signature in database
GPG Key ID: A0E766808764D73F

View File

@ -202,7 +202,12 @@ void QgsFeatureFilterModel::updateCompleter()
if ( mExtraIdentifierValueIndex != 0 )
{
beginMoveRows( QModelIndex(), mExtraIdentifierValueIndex, mExtraIdentifierValueIndex, QModelIndex(), 0 );
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
Entry extraEntry = mEntries.takeAt( mExtraIdentifierValueIndex, 1 );
mEntries.prepend( extraEntry );
#else
mEntries.move( mExtraIdentifierValueIndex, 0 );
#endif
endMoveRows();
}
firstRow = 1;