diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-01-07 15:04:15 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-07 12:30:25 -0800 |
commit | 8531cec1004f1ee5f0655400557a4619945975b6 (patch) | |
tree | 78f6c0a0783868590a0255787b381edede9eedc7 /qt-ui/divelogimportdialog.cpp | |
parent | 2b311b1c2cb440deb9434a19b5e2b1ce37c8554c (diff) | |
download | subsurface-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.cpp')
-rw-r--r-- | qt-ui/divelogimportdialog.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index aabd6df6a..506f9c8d6 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -480,3 +480,17 @@ void DiveLogImportDialog::on_buttonBox_accepted() process_dives(true, false); MainWindow::instance()->refreshDisplay(); } + +TagDragDelegate::TagDragDelegate(QObject *parent) : QStyledItemDelegate(parent) +{ +} + +QSize TagDragDelegate::sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const +{ + return QStyledItemDelegate::sizeHint(option, index); +} + +void TagDragDelegate::paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const +{ + QStyledItemDelegate::paint(painter, option, index); +} |