diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-01-06 14:32:03 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-06 19:34:51 -0800 |
commit | 3d8e2d06439bcf5ce0e66b2e28a437ebbb8c9968 (patch) | |
tree | f4f6bbb08bcf2c96c057391bafa0892cde91c27c /qt-ui/divelogimportdialog.cpp | |
parent | 48775c530e887bf3c64b4ec5ece3e289250e03a2 (diff) | |
download | subsurface-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.cpp')
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 02fc03e69..69639e2ec 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -4,6 +4,8 @@ #include "divelogimportdialog.h" #include "mainwindow.h" #include "ui_divelogimportdialog.h" +#include <QAbstractListModel> +#include <QAbstractTableModel> const DiveLogImportDialog::CSVAppConfig DiveLogImportDialog::CSVApps[CSVAPPS] = { // time, depth, temperature, po2, cns, ndl, tts, stopdepth, pressure @@ -16,6 +18,36 @@ const DiveLogImportDialog::CSVAppConfig DiveLogImportDialog::CSVApps[CSVAPPS] = { NULL, } }; +ColumnNameProvider::ColumnNameProvider(QObject *parent) +{ + +} + +bool ColumnNameProvider::insertRows(int row, int count, const QModelIndex &parent) +{ + +} + +bool ColumnNameProvider::removeRows(int row, int count, const QModelIndex &parent) +{ + +} + +bool ColumnNameProvider::setData(const QModelIndex &index, const QVariant &value, int role) +{ + +} + +QVariant ColumnNameProvider::data(const QModelIndex &index, int role) const +{ + +} + +int ColumnNameProvider::rowCount(const QModelIndex &parent) const +{ + +} + DiveLogImportDialog::DiveLogImportDialog(QStringList *fn, QWidget *parent) : QDialog(parent), selector(true), ui(new Ui::DiveLogImportDialog) |