diff options
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 25 | ||||
-rw-r--r-- | qt-ui/divelogimportdialog.h | 14 |
2 files changed, 39 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 338fb1efa..ffe91fe9d 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -142,6 +142,31 @@ void ColumnDropCSVView::dropEvent(QDropEvent *event) } +ColumnNameResult::ColumnNameResult(QObject *parent) +{ + +} + +bool ColumnNameResult::setData(const QModelIndex &index, const QVariant &value, int role) +{ + +} + +QVariant ColumnNameResult::data(const QModelIndex &index, int role) const +{ + +} + +int ColumnNameResult::rowCount(const QModelIndex &parent) const +{ + +} + +int ColumnNameResult::columnCount(const QModelIndex &parent) const +{ + +} + DiveLogImportDialog::DiveLogImportDialog(QStringList *fn, QWidget *parent) : QDialog(parent), selector(true), ui(new Ui::DiveLogImportDialog) 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: |