diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-07-20 11:13:47 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-07-20 11:13:47 +0200 |
commit | 132323c7330afaa8004feb877891842e959a2dde (patch) | |
tree | 034fb576038dba66153bec78ab2a97bf247d77b1 /src/gui/undocommands.cpp | |
parent | c7f79b3a9878dafc4088f170964264dff839f502 (diff) | |
parent | f83ee82a6170845e6207aad19d6bd096db89f4c7 (diff) |
Merge branch 'qt'
Diffstat (limited to 'src/gui/undocommands.cpp')
-rw-r--r-- | src/gui/undocommands.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/undocommands.cpp b/src/gui/undocommands.cpp index 5525cb7..c8221fe 100644 --- a/src/gui/undocommands.cpp +++ b/src/gui/undocommands.cpp @@ -284,6 +284,7 @@ void ApplyStyleToNodesCommand::undo() n->setStyleName(_oldStyles[n]); n->attachStyle(); } + _scene->refreshAdjacentEdges(_oldStyles.keys()); GraphUpdateCommand::undo(); } @@ -294,10 +295,13 @@ void ApplyStyleToNodesCommand::redo() n->setStyleName(_style); n->attachStyle(); } + _scene->refreshAdjacentEdges(_oldStyles.keys()); + GraphUpdateCommand::redo(); } -ApplyStyleToEdgesCommand::ApplyStyleToEdgesCommand(TikzScene *scene, QString style, QUndoCommand *parent) : + +ApplyStyleToEdgesCommand::ApplyStyleToEdgesCommand(TikzScene * scene, QString style, QUndoCommand * parent) : GraphUpdateCommand(scene, parent), _style(style), _oldStyles() { foreach(QGraphicsItem *it, scene->selectedItems()) { |