Skip to content
Permalink
Browse files

Qt < 5.6 compatibility

  • Loading branch information
m-kuhn committed Oct 26, 2017
1 parent a2b79d4 commit 035fc46ada5dc41dd874380ec4fff9b92eccb1a5
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsfeaturefiltermodel.cpp
@@ -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;

0 comments on commit 035fc46

Please sign in to comment.
You can’t perform that action at this time.