--- 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; };