src/lddocument.cpp

changeset 1273
900f1dfae46b
parent 1272
bf0ac547b934
child 1278
6e1ea24e5a5e
--- 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);
 		}
 	);
 }

mercurial