Revert "Add cable management: drawing, cores, numbering, cross-references and cable list"

This commit is contained in:
Laurent Trinques
2026-10-10 16:49:39 +02:00
committed by GitHub
parent 738ffbfc36
commit 2bb3343d2d
113 changed files with 209 additions and 18793 deletions
@@ -18,7 +18,6 @@
#include "deleteqgraphicsitemcommand.h"
#include "../wiringrules.h"
#include "../cable/cablemanager.h"
#include "../diagram.h"
#include "../qetproject.h"
#include "addgraphicsobjectcommand.h"
@@ -338,15 +337,6 @@ void DeleteQGraphicsItemCommand::undo()
}
}
//Back on the sheet and linked again: the cables which run over
//this report claim their wire on the other side once more.
for (Element *e : m_removed_contents.m_elements) {
if (e && (e->linkType() & Element::AllReport)) {
CableManager::refreshLabels(m_diagram->project());
break;
}
}
QUndoCommand::undo();
}
@@ -400,16 +390,5 @@ void DeleteQGraphicsItemCommand::redo()
for(QGraphicsItem *item : m_removed_contents.items())
m_diagram->removeItem(item);
//A folio report carries a cable core over to the next sheet:
//taking one away (putting it back is undo, below) changes which
//wires belong to which cable, so the cable fields are worked
//out again straight away.
for (Element *e : m_removed_contents.m_elements) {
if (e && (e->linkType() & Element::AllReport)) {
CableManager::refreshLabels(m_diagram->project());
break;
}
}
QUndoCommand::redo();
}