10#include <QStandardItemModel>
32 SignalModel(
int rows,
int columns, QObject *parent =
nullptr);
41 Qt::ItemFlags
flags(
const QModelIndex &index)
const override;
49 int value(
int row,
int col)
const;
58 bool isInputRow(
int row)
const {
return row < m_inputRows; }
74 void notifyBulkChanged();
BulkEditGuard(SignalModel &model)
void setValue(int row, int col, int value)
Sets the logic value (0/1) of the cell at (row, col).
int value(int row, int col) const
Returns the logic value (0/1) of the cell at (row, col).
void setInputRows(int inputRows)
Records how many leading rows are inputs (the rest are outputs).
int inputRows() const
Returns the number of input rows (the output rows follow them).
SignalModel(int rows, int columns, QObject *parent=nullptr)
Constructs the model.
bool isInputRow(int row) const
Returns true if row is an input row (row < inputRows()).
Qt::ItemFlags flags(const QModelIndex &index) const override
static constexpr int kMaxColumns