VTableModel

class VTableModel : public QAbstractItemModel

Public Types

  • enum Columns

    Values:

    • enumerator NAME

    • enumerator ADDRESS

    • enumerator COUNT

Public Functions

  • VTableModel(QList<VTableDescription> *vtables, QObject *parent = nullptr)

  • QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const

  • QModelIndex parent(const QModelIndex &index) const

  • int rowCount(const QModelIndex &parent = QModelIndex()) const

  • int columnCount(const QModelIndex &parent = QModelIndex()) const

  • QVariant data(const QModelIndex &index, int role) const

  • QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const

Public Static Attributes

  • static const int VTableDescriptionRole = Qt::UserRole