src/editHistory.h

changeset 1273
900f1dfae46b
parent 1272
bf0ac547b934
child 1326
69a90bd2dba2
--- a/src/editHistory.h	Mon Mar 05 23:59:47 2018 +0200
+++ b/src/editHistory.h	Tue Mar 06 23:29:40 2018 +0200
@@ -116,14 +116,15 @@
 	Serializer::Archive newState;
 };
 
-class SwapHistoryEntry : public AbstractHistoryEntry
+class MoveHistoryEntry : public AbstractHistoryEntry
 {
 public:
-	SwapHistoryEntry (const QModelIndex& index_1, const QModelIndex& index_2, EditHistory* parent);
+	MoveHistoryEntry(int top, int bottom, int destination, EditHistory* parent);
 	void undo() override;
 	void redo() override;
 
 private:
-	int row_1;
-	int row_2;
+	int top;
+	int bottom;
+	int destination;
 };

mercurial