summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-06 15:56:08 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-06 19:37:37 -0800
commitaa33ae9526a43dc90ebf06c96bcf3961abdbc6e4 (patch)
treea30c9eb2eaa289c756e95ba7f7a377e86163a2cd /qt-ui/divelogimportdialog.h
parentcedf339e1e8a7d146a3fa3a86e1eac9be2dd0d6e (diff)
downloadsubsurface-aa33ae9526a43dc90ebf06c96bcf3961abdbc6e4.tar.gz
Add skeleton code for the table view that will accepts drops
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 efb7f296a..ed781a580 100644
--- a/qt-ui/divelogimportdialog.h
+++ b/qt-ui/divelogimportdialog.h
@@ -5,6 +5,7 @@
#include <QAbstractListModel>
#include <QListView>
#include <QDragLeaveEvent>
+#include <QTableView>
#include "../dive.h"
#include "../divelist.h"
@@ -40,6 +41,19 @@ private:
int currentDraggedIndex;
};
+class ColumnDropCSVView : public QTableView {
+ Q_OBJECT
+public:
+ ColumnDropCSVView(QWidget *parent);
+protected:
+ void dragLeaveEvent(QDragLeaveEvent *leave);
+ void dragEnterEvent(QDragEnterEvent *event);
+ void dragMoveEvent(QDragMoveEvent *event);
+ void dropEvent(QDropEvent *event);
+private:
+ QStringList columns;
+};
+
class DiveLogImportDialog : public QDialog {
Q_OBJECT