summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.h
diff options
context:
space:
mode:
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