mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 13:40:52 +01:00
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:
@@ -4,6 +4,7 @@
|
||||
#include <diagramposition.h>
|
||||
#include <elementprovider.h>
|
||||
#include <qetgraphicsitem/elementtextitem.h>
|
||||
#include <diagramcommands.h>
|
||||
|
||||
/**
|
||||
* @brief FolioReportProperties::FolioReportProperties : Construcor
|
||||
@@ -68,5 +69,7 @@ void FolioReportProperties::BuildRadioList() {
|
||||
* Apply the new properties for this folio report
|
||||
*/
|
||||
void FolioReportProperties::Apply() {
|
||||
if (element_to_link) element_to_link->linkToElement(element_);
|
||||
if (element_to_link) {
|
||||
element_->diagram()->undoStack().push(new LinkElementsCommand(element_, element_to_link));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user