23 #ifndef QTPDCOM_TABLEMODEL_H 24 #define QTPDCOM_TABLEMODEL_H 30 #include <QAbstractTableModel> 45 Q_PROPERTY(
bool editing READ isEditing NOTIFY editingChanged)
56 bool isEditing()
const;
57 unsigned int getRowCapacity()
const;
58 bool hasVisibleRowsVariable()
const;
59 virtual int rowCount(
const QModelIndex &)
const;
60 virtual int columnCount(
const QModelIndex &)
const;
61 virtual QVariant data(
const QModelIndex &,
int)
const;
62 virtual QVariant headerData(
int, Qt::Orientation,
int)
const;
63 virtual Qt::ItemFlags flags(
const QModelIndex &)
const;
64 virtual bool setData(
const QModelIndex &,
const QVariant &,
int);
69 const QModelIndex &parent = {})
override;
73 const QModelIndex &parent = {})
override;
78 void setHighlightRowVariable(
80 const PdCom::Selector & = {},
81 const Transmission & =
87 void setHighlightRowVariable(
90 const PdCom::Selector & = {},
91 const Transmission & =
95 void clearHighlightRowVariable();
104 Q_INVOKABLE QString toCsv(
106 QChar seperator = QChar(
','),
107 const QLocale &locale = QLocale::c())
const;
120 Q_INVOKABLE
int fromCsv(
122 QChar seperator = QChar(
','),
125 const QLocale &locale = QLocale::c());
131 void setVisibleRowsVariable(
133 const PdCom::Selector & = {},
134 const Transmission & =
142 void setVisibleRowsVariable(
145 const PdCom::Selector & = {},
146 const Transmission & =
150 void clearVisibleRowsVariable();
152 void setHighlightColor(QColor,
int = -1);
153 void setDisabledColor(QColor,
int = -1);
167 QHash<int, QByteArray> roleNames()
const override;
170 void editingChanged(
bool);
176 void addRowAndCopyLast();
187 void dimensionChanged();
188 void columnHeaderChanged();
190 void highlightRowChanged();
191 void visibleRowCountChanged();
Table Column.
Definition: TableColumn.h:43
Exception type.
Definition: TableModel.h:157
Definition: BroadcastModel.h:32
Table model.
Definition: TableModelImpl.h:44
std::unique_ptr< Impl > impl
Definition: TableModel.h:184
Exception(const QString &msg)
Constructor.
Definition: TableModel.h:161
Table model.
Definition: TableModel.h:42
#define QTPDCOM_PUBLIC
Definition: Export.h:30
QString msg
Exception message.
Definition: TableModel.h:164
constexpr struct QtPdCom::event_mode_tag event_mode