--- a/src/lddocument.cpp Mon Mar 05 23:59:47 2018 +0200 +++ b/src/lddocument.cpp Tue Mar 06 23:29:40 2018 +0200 @@ -44,10 +44,10 @@ connect( this, - &Model::objectsSwapped, - [&](const QModelIndex& index_1, const QModelIndex& index_2) + &Model::rowsMoved, + [&](const QModelIndex&, int start, int end, const QModelIndex&, int row) { - history()->add<SwapHistoryEntry>(index_1, index_2); + history()->add<MoveHistoryEntry>(start, end, row); } ); }