mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Fix build with QT < 5.13
This commit is contained in:
parent
e1044d87f1
commit
6b514e0cd2
@ -274,7 +274,11 @@ bool QgsFieldMappingModel::moveUpOrDown( const QModelIndex &index, bool up )
|
||||
return false;
|
||||
}
|
||||
beginMoveRows( QModelIndex( ), row, row, QModelIndex(), row + 2 );
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
|
||||
mMapping.swap( row, row + 1 );
|
||||
#else
|
||||
mMapping.swapItemsAt( row, row + 1 );
|
||||
#endif
|
||||
endMoveRows();
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user