add undo command for linkable element

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2716 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-01-07 20:11:28 +00:00
parent b1704f8260
commit 6e58482495
6 changed files with 76 additions and 1 deletions

View File

@@ -77,6 +77,17 @@ void ReportElement::unlinkAllElements(){
}
}
}
/**
* @brief ReportElement::unlinkElement
*unlink the specified element.
*for reportelement, they must be only one linked element, so we call
*unlinkAllElements for clear the connected_elements list.
* @param elmt
*/
void ReportElement::unlinkElement(Element *elmt) {
Q_UNUSED (elmt);
unlinkAllElements();
}
/**
* @brief ReportElement::linkType