mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Qt < 5.6 compatibility
This commit is contained in:
parent
a2b79d47b9
commit
035fc46ada
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user