7 : QStandardItemModel(rows, columns, parent)
15 return Qt::ItemIsSelectable | Qt::ItemIsEnabled;
20 setData(index(row, col),
value, Qt::DisplayRole);
25 return index(row, col).data(Qt::DisplayRole).toInt();
33void SignalModel::notifyBulkChanged()
35 emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1));
41 m_model.blockSignals(
true);
46 m_model.blockSignals(
false);
47 m_model.notifyBulkChanged();
SignalModel for the beWavedDolphin waveform table.
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.
Qt::ItemFlags flags(const QModelIndex &index) const override