summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-07 15:04:15 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-07 12:30:25 -0800
commit8531cec1004f1ee5f0655400557a4619945975b6 (patch)
tree78f6c0a0783868590a0255787b381edede9eedc7 /qt-ui/divelogimportdialog.h
parent2b311b1c2cb440deb9434a19b5e2b1ce37c8554c (diff)
downloadsubsurface-8531cec1004f1ee5f0655400557a4619945975b6.tar.gz
Add delegate skeleton for the drag columns
This new class is the responsible to draw the columns that can be dragged from the top bar to the bottom one. 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 9a75bb14d..cc017e8c9 100644
--- a/qt-ui/divelogimportdialog.h
+++ b/qt-ui/divelogimportdialog.h
@@ -7,6 +7,7 @@
#include <QDragLeaveEvent>
#include <QTableView>
#include <QAbstractTableModel>
+#include <QStyledItemDelegate>
#include "../dive.h"
#include "../divelist.h"
@@ -110,4 +111,12 @@ private:
static const CSVAppConfig CSVApps[CSVAPPS];
};
+class TagDragDelegate : public QStyledItemDelegate {
+ Q_OBJECT
+public:
+ TagDragDelegate(QObject *parent);
+ QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const;
+ void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const;
+};
+
#endif // DIVELOGIMPORTDIALOG_H