diff options
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: |