diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-01-07 15:19:19 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-07 12:32:15 -0800 |
commit | 3b654438b6774f27e05d9d8f35496166c2f155dc (patch) | |
tree | eea128288ebba0cd5eb57dd563ed6b660f85ab7b /qt-ui/divelogimportdialog.cpp | |
parent | ce9d972ffacc475e4b588d2e9a95bfea55391a38 (diff) | |
download | subsurface-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.cpp | 5 |
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); } + |