summaryrefslogtreecommitdiff
path: root/ui/qt/uat_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/uat_model.h')
-rw-r--r--ui/qt/uat_model.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/qt/uat_model.h b/ui/qt/uat_model.h
index 36e79ebf83..c52646d7c3 100644
--- a/ui/qt/uat_model.h
+++ b/ui/qt/uat_model.h
@@ -38,7 +38,8 @@ class UatModel : public QAbstractTableModel
Q_OBJECT
public:
- UatModel(QObject *parent = 0, epan_uat *uat = 0);
+ UatModel(QObject *parent, uat_t *uat = 0);
+ UatModel(QObject *parent, QString tableName);
Qt::ItemFlags flags(const QModelIndex &index) const;
QVariant data(const QModelIndex &index, int role) const;
@@ -55,9 +56,12 @@ public:
bool copyRow(int dst_row, int src_row);
bool hasErrors() const;
+ QModelIndex findRowForColumnContent(QVariant columnContent, int columnToCheckAgainst, int role = Qt::DisplayRole);
+
private:
bool checkField(int row, int col, char **error) const;
QList<int> checkRow(int row);
+ void loadUat(uat_t * uat = 0);
epan_uat *uat_;
QList<bool> dirty_records;