29 UatModel(QObject *parent, QString tableName);
31 Qt::ItemFlags flags(
const QModelIndex &index)
const;
32 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
33 QVariant headerData(
int section, Qt::Orientation orientation,
34 int role = Qt::DisplayRole)
const;
35 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
36 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
38 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
40 bool insertRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
41 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
43 QModelIndex appendEntry(QVariantList row);
45 QModelIndex copyRow(QModelIndex original);
47 bool moveRow(
int src_row,
int dst_row);
48 bool moveRows(
const QModelIndex &sourceParent,
int sourceRow,
int count,
const QModelIndex &destinationParent,
int destinationChild);
51 Qt::DropActions supportedDropActions()
const;
52 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent);
55 bool hasErrors()
const;
75 QModelIndex findRowForColumnContent(QVariant columnContent,
int columnToCheckAgainst,
int role = Qt::DisplayRole);
78 bool checkField(
int row,
int col,
char **error)
const;
79 QList<int> checkRow(
int row);
80 void loadUat(
uat_t * uat = 0);
81 bool moveRowPrivate(
int src_row,
int dst_row);
85 QVector<bool> dirty_records;
86 QVector<QMap<int, QString> > record_errors;