Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Qt < 5.6 compatibility
- Loading branch information
Showing
with
5 additions
and
0 deletions.
-
+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; |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.