diff --git a/src/model/xqviewmodel.cpp b/src/model/xqviewmodel.cpp index 52bebae..9f41079 100644 --- a/src/model/xqviewmodel.cpp +++ b/src/model/xqviewmodel.cpp @@ -144,6 +144,8 @@ void XQViewModel::addSection(const XQItemList& list, const XQNodePtr& sheetNode XQModelSection section(list[0]->index(), dataNode ); _sections.addAtKey(sheetNode->attribute( c_ContentType), section); } + + //! SLOT, der aufgerufen wird, wenn eine edit-action getriggert wurde. void XQViewModel::onActionTriggered(QAction* action) @@ -296,12 +298,12 @@ void XQViewModel::cmdCut( XQCommand& command ) XQItem& firstItem = xqFirstItem( (*it).itemPos ); qDebug() << " --- Cut: " << firstItem.text() << " " << firstItem.row() << " id#" << entry.contentNode->_id; - entry.contentNode->unlink_self(); removeRow(entry.itemPos ); } } + //! entfernte knoten wieder einfügen , 'command' enthält die liste void XQViewModel::cmdCutUndo( XQCommand& command )