diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-01-06 16:01:21 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-06 19:37:40 -0800 |
commit | 858fe5588a559cc51893ff2f72db6141d814c259 (patch) | |
tree | 072c73e10e35cd33e953fc4de02b53609b184758 /qt-ui/divelogimportdialog.h | |
parent | aa33ae9526a43dc90ebf06c96bcf3961abdbc6e4 (diff) | |
download | subsurface-858fe5588a559cc51893ff2f72db6141d814c259.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogimportdialog.h')
-rw-r--r-- | qt-ui/divelogimportdialog.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <QListView> #include <QDragLeaveEvent> #include <QTableView> +#include <QAbstractTableModel> #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<QStringList> columnValues; + QStringList columnNames; +}; + class ColumnNameView : public QListView { Q_OBJECT public: |