42 SLOT(handleNewObject(QModelIndex)) |
42 SLOT(handleNewObject(QModelIndex)) |
43 ); |
43 ); |
44 |
44 |
45 connect( |
45 connect( |
46 this, |
46 this, |
47 &Model::objectsSwapped, |
47 &Model::rowsMoved, |
48 [&](const QModelIndex& index_1, const QModelIndex& index_2) |
48 [&](const QModelIndex&, int start, int end, const QModelIndex&, int row) |
49 { |
49 { |
50 history()->add<SwapHistoryEntry>(index_1, index_2); |
50 history()->add<MoveHistoryEntry>(start, end, row); |
51 } |
51 } |
52 ); |
52 ); |
53 } |
53 } |
54 |
54 |
55 LDDocument::~LDDocument() |
55 LDDocument::~LDDocument() |