summaryrefslogtreecommitdiff
path: root/src/gui/undocommands.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-04-22 10:53:39 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-05-07 11:57:55 +0200
commitf83ee82a6170845e6207aad19d6bd096db89f4c7 (patch)
tree43a4fead2b87310427a0de5efde28f0e016abcd6 /src/gui/undocommands.cpp
parent8708fb31cc1f8a19b9e1e3cc2424f7f391a5d2ce (diff)
edge styles done
Diffstat (limited to 'src/gui/undocommands.cpp')
-rw-r--r--src/gui/undocommands.cpp6
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()) {