summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-06 14:54:58 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-06 19:35:03 -0800
commit2034508c074c55774a489cb86076365d2acee050 (patch)
treecb3aac88e6618374ea56c600cd29f40210f0a68f /qt-ui/divelogimportdialog.h
parentd57d86f5dc657971cb6596aec25b7692b1880bfb (diff)
downloadsubsurface-2034508c074c55774a489cb86076365d2acee050.tar.gz
Add class skeleton that will handle the drag starts
This class will handle the drag 'n drop "drag" part. 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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.h b/qt-ui/divelogimportdialog.h
index f658e5df4..9441fa71a 100644
--- a/qt-ui/divelogimportdialog.h
+++ b/qt-ui/divelogimportdialog.h
@@ -3,6 +3,7 @@
#include <QDialog>
#include <QAbstractListModel>
+#include <QListView>
#include "../dive.h"
#include "../divelist.h"
@@ -24,6 +25,14 @@ private:
QStringList columnNames;
};
+class ColumnNameView : public QListView {
+ Q_OBJECT
+public:
+ ColumnNameView(QWidget *parent);
+protected:
+ void mousePressEvent(QMouseEvent *press);
+};
+
class DiveLogImportDialog : public QDialog {
Q_OBJECT