Fix build with Qt 5.5

This commit is contained in:
Matthias Kuhn 2017-10-26 17:36:21 +02:00
parent 9c24818d78
commit 7c5f910de3
No known key found for this signature in database
GPG Key ID: A0E766808764D73F

View File

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