Revert "Add terminalStripModel class"

This reverts commit a1e18d2bba.
This commit is contained in:
joshua
2021-06-07 19:45:45 +02:00
parent a1e18d2bba
commit 4615e6d060
11 changed files with 23 additions and 325 deletions

View File

@@ -21,7 +21,6 @@
#include <QObject>
#include <QPointer>
#include "terminalstripdata.h"
#include "../properties/elementdata.h"
class Element;
class RealTerminal;
@@ -30,26 +29,6 @@ class PhysicalTerminal;
class TerminalStripIndex;
class TerminalElement;
struct RealTerminalData
{
QSharedPointer<RealTerminal> m_real_terminal;
int pos_ = 0,
level_ = 0;
QString label_,
Xref_,
cable_,
cable_wire_,
conductor_;
ElementData::TerminalType type_;
bool led_ = false,
is_element = false;
};
/**
* @brief The TerminalStrip class
* This class hold all the datas and configurations
@@ -59,8 +38,6 @@ struct RealTerminalData
*/
class TerminalStrip : public QObject
{
friend class TerminalStripModel;
Q_OBJECT
public:
TerminalStrip(QETProject *project);
@@ -90,9 +67,7 @@ class TerminalStrip : public QObject
bool haveTerminal (Element *terminal);
int physicalTerminalCount() const;
int realTerminalCount() const;
TerminalStripIndex index(int index = 0);
RealTerminalData realTerminalData(int real_terminal_index);
QVector<QPointer<Element>> terminalElement() const;