19 #include <QAbstractItemModel> 22 #include <epan/uat-int.h> 30 UatModel(QObject *parent, QString tableName);
32 Qt::ItemFlags flags(
const QModelIndex &index)
const;
33 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
34 QVariant headerData(
int section, Qt::Orientation orientation,
35 int role = Qt::DisplayRole)
const;
36 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
37 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
39 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
41 bool insertRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
42 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
44 bool copyRow(
int dst_row,
int src_row);
45 bool moveRow(
int src_row,
int dst_row);
47 bool hasErrors()
const;
50 QModelIndex findRowForColumnContent(QVariant columnContent,
int columnToCheckAgainst,
int role = Qt::DisplayRole);
53 bool checkField(
int row,
int col,
char **error)
const;
54 QList<int> checkRow(
int row);
55 void loadUat(
uat_t * uat = 0);
58 QList<bool> dirty_records;
59 QList<QMap<int, QString> > record_errors;
Definition: uat_model.h:24