summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 4d6a5bb..70f0f94 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -16,7 +16,7 @@
#include <QDebug>
#include "commands.h"
-#include "diagramconnection.h"
+#include "line.h"
#include "diagramdocument.h"
#include "diagramitem.h"
#include "diagramobject.h"
@@ -145,7 +145,7 @@ RemoveObjectCommand::~RemoveObjectCommand()
void
RemoveObjectCommand::redo()
{
- foreach (DiagramConnection *connection, m_connections)
+ foreach (Line *connection, m_connections)
m_document->removeItem(connection);
m_document->removeItem(m_object);
m_owner = true;
@@ -155,7 +155,7 @@ void
RemoveObjectCommand::undo()
{
m_document->addItem(m_object);
- foreach (DiagramConnection *connection, m_connections) {
+ foreach (Line *connection, m_connections) {
m_document->addItem(connection);
}
m_owner = false;