From 858fe5588a559cc51893ff2f72db6141d814c259 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 6 Jan 2015 16:01:21 -0200 Subject: Add skeleton code for the model that will have the result of columns This model will show some columns and the user will need to provide the correct information for each of them Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'qt-ui/divelogimportdialog.h') diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h index ed781a580..7c472661a 100644 --- a/qt-ui/divelogimportdialog.h +++ b/qt-ui/divelogimportdialog.h @@ -6,6 +6,7 @@ #include #include #include +#include #include "../dive.h" #include "../divelist.h" @@ -27,6 +28,19 @@ private: QStringList columnNames; }; +class ColumnNameResult : public QAbstractTableModel { + Q_OBJECT +public: + ColumnNameResult(QObject *parent); + bool setData(const QModelIndex &index, const QVariant &value, int role); + QVariant data(const QModelIndex &index, int role) const; + int rowCount(const QModelIndex &parent) const; + int columnCount(const QModelIndex &parent) const; +private: + QList columnValues; + QStringList columnNames; +}; + class ColumnNameView : public QListView { Q_OBJECT public: -- cgit v1.2.3-70-g09d2