Improve undo command when remove a terminal strip

This commit is contained in:
joshua
2021-04-30 19:15:10 +02:00
parent 2572e1c25d
commit d551c8e6b9
4 changed files with 45 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
Copyright 2006-2021 The QElectroTech Team
This file is part of QElectroTech.
@@ -58,6 +58,8 @@ class TerminalStrip : public QObject
int physicalTerminalCount() const;
TerminalStripIndex index(int index = 0);
QVector<QPointer<Element>> terminalElement() const;
private:
QSharedPointer<RealTerminal> realTerminal(Element *terminal);
QSharedPointer<PhysicalTerminal> physicalTerminal(QSharedPointer<RealTerminal> terminal);