summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-06 14:32:03 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-06 19:34:51 -0800
commit3d8e2d06439bcf5ce0e66b2e28a437ebbb8c9968 (patch)
treef4f6bbb08bcf2c96c057391bafa0892cde91c27c /qt-ui/divelogimportdialog.h
parent48775c530e887bf3c64b4ec5ece3e289250e03a2 (diff)
downloadsubsurface-3d8e2d06439bcf5ce0e66b2e28a437ebbb8c9968.tar.gz
Skeleton code for the model that has the columns information
Just the skeleton, then start doing stuff. 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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h
index b2ee4ff99..f658e5df4 100644
--- a/qt-ui/divelogimportdialog.h
+++ b/qt-ui/divelogimportdialog.h
@@ -2,6 +2,7 @@
#define DIVELOGIMPORTDIALOG_H
#include <QDialog>
+#include <QAbstractListModel>
#include "../dive.h"
#include "../divelist.h"
@@ -10,6 +11,19 @@ namespace Ui {
class DiveLogImportDialog;
}
+class ColumnNameProvider : public QAbstractListModel {
+ Q_OBJECT
+public:
+ ColumnNameProvider(QObject *parent);
+ bool insertRows(int row, int count, const QModelIndex &parent);
+ bool removeRows(int row, int count, const QModelIndex &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;
+private:
+ QStringList columnNames;
+};
+
class DiveLogImportDialog : public QDialog {
Q_OBJECT