114 int row; |
114 int row; |
115 Serializer::Archive oldState; |
115 Serializer::Archive oldState; |
116 Serializer::Archive newState; |
116 Serializer::Archive newState; |
117 }; |
117 }; |
118 |
118 |
119 class SwapHistoryEntry : public AbstractHistoryEntry |
119 class MoveHistoryEntry : public AbstractHistoryEntry |
120 { |
120 { |
121 public: |
121 public: |
122 SwapHistoryEntry (const QModelIndex& index_1, const QModelIndex& index_2, EditHistory* parent); |
122 MoveHistoryEntry(int top, int bottom, int destination, EditHistory* parent); |
123 void undo() override; |
123 void undo() override; |
124 void redo() override; |
124 void redo() override; |
125 |
125 |
126 private: |
126 private: |
127 int row_1; |
127 int top; |
128 int row_2; |
128 int bottom; |
|
129 int destination; |
129 }; |
130 }; |