src/lddocument.cpp

changeset 1273
900f1dfae46b
parent 1272
bf0ac547b934
child 1278
6e1ea24e5a5e
equal deleted inserted replaced
1272:bf0ac547b934 1273:900f1dfae46b
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()

mercurial