Remove isXrefCell method...

and use instead columnTypeForIndex method
This commit is contained in:
joshua
2021-12-02 18:54:45 +01:00
parent ce8bd7fae3
commit 6e68e6047a
3 changed files with 29 additions and 36 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
Copyright 2006-2021 The QElectroTech Team
This file is part of QElectroTech.
@@ -64,10 +64,10 @@ class TerminalStripModel : public QAbstractTableModel
virtual Qt::ItemFlags flags (const QModelIndex &index) const override;
QVector<QPair<RealTerminalData, RealTerminalData>> modifiedRealTerminalData() const;
bool isXrefCell(const QModelIndex &index, Element **element = nullptr);
QVector<int> levelCellCount(const QModelIndexList &index_list) const;
QVector<PhysicalTerminalData> physicalTerminalDataForIndex(QModelIndexList index_list) const;
QVector<RealTerminalData> realTerminalDataForIndex(QModelIndexList index_list) const;
RealTerminalData realTerminalDataForIndex(const QModelIndex &index) const;
private:
void fillPhysicalTerminalData();