src/editHistory.h

changeset 1440
265b2e95a8e8
parent 1419
f7c53002a990
--- a/src/editHistory.h	Fri Dec 28 00:03:47 2018 +0200
+++ b/src/editHistory.h	Thu Jun 20 08:54:35 2019 +0300
@@ -81,7 +81,7 @@
 class AddHistoryEntry : public AbstractHistoryEntry
 {
 public:
-	AddHistoryEntry (const QModelIndex& index, EditHistory* parent);
+	AddHistoryEntry (const Uuid& id, const int row, EditHistory* parent);
 	void undo() override;
 	void redo() override;
 	
@@ -101,8 +101,7 @@
 class EditHistoryEntry : public AbstractHistoryEntry
 {
 public:
-	EditHistoryEntry(
-		const QModelIndex& index,
+	EditHistoryEntry(const int row,
 		const Serializer::Archive& oldCode,
 		const Serializer::Archive& newCode,
 		EditHistory* parent
@@ -115,16 +114,3 @@
 	Serializer::Archive oldState;
 	Serializer::Archive newState;
 };
-
-class MoveHistoryEntry : public AbstractHistoryEntry
-{
-public:
-	MoveHistoryEntry(int top, int bottom, int destination, EditHistory* parent);
-	void undo() override;
-	void redo() override;
-
-private:
-	int top;
-	int bottom;
-	int destination;
-};

mercurial