summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-07 15:19:19 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-07 12:32:15 -0800
commit3b654438b6774f27e05d9d8f35496166c2f155dc (patch)
treeeea128288ebba0cd5eb57dd563ed6b660f85ab7b /qt-ui/divelogimportdialog.cpp
parentce9d972ffacc475e4b588d2e9a95bfea55391a38 (diff)
downloadsubsurface-3b654438b6774f27e05d9d8f35496166c2f155dc.tar.gz
Draw a nice rounded rect around the avaliable column names
This drawns a nice rounded rect around the avaliable column names, using antialiasing. 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.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 3c76665c9..8eadc5b32 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -493,5 +493,10 @@ QSize TagDragDelegate::sizeHint(const QStyleOptionViewItem & option, const QMode
void TagDragDelegate::paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const
{
+ painter->save();
+ painter->setRenderHints(QPainter::Antialiasing);
+ painter->drawRoundedRect(option.rect.adjusted(4,4,-4,-4), 5, 5);
+ painter->restore();
QStyledItemDelegate::paint(painter, option, index);
}
+