Skip to content

Commit

Permalink
Fix build with QT < 5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Apr 3, 2020
1 parent e1044d8 commit 6b514e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsfieldmappingmodel.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6b514e0

Please sign in to comment.