src/editHistory.h

changeset 1273
900f1dfae46b
parent 1272
bf0ac547b934
child 1326
69a90bd2dba2
equal deleted inserted replaced
1272:bf0ac547b934 1273:900f1dfae46b
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 };

mercurial