aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-07-20 20:42:08 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-20 21:42:44 -0700
commitae03ece7fade3dd9249b2385493e79099f7f2b92 (patch)
tree70103956af0c62520ab6e90583716c6dd395675f /qt-ui/modeldelegates.cpp
parent73ac9848cbeeab236d97cb8a1d689a11c6dab6f9 (diff)
downloadsubsurface-ae03ece7fade3dd9249b2385493e79099f7f2b92.tar.gz
Code uneeded because the drawControw does this by itself
Removing dead code. the call above this does that already. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r--qt-ui/modeldelegates.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index 6f792398f..3ded31779 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -499,7 +499,6 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem
const QAbstractProxyModel *proxyModel = dynamic_cast<const QAbstractProxyModel*>(origIdx.model());
QModelIndex index = proxyModel->mapToSource(origIdx);
QStyledItemDelegate::initStyleOption(&opt, index);
- QBrush bg;
QString diveSiteName = index.data().toString();
QString bottomText;
QIcon icon = index.data(Qt::DecorationRole).value<QIcon>();
@@ -566,13 +565,6 @@ print_part:
qApp->style()->drawControl(QStyle::CE_ItemViewItem, &opt, painter, NULL);
painter->save();
- painter->setRenderHint(QPainter::Antialiasing);
- painter->setPen(QPen(Qt::NoPen));
- painter->setBrush(bg);
- painter->drawRect(option.rect);
- painter->restore();
-
- painter->save();
painter->setBrush(option.palette.text());
painter->setFont(fontBigger);
painter->drawText(option.rect.x(),option.rect.y() + fmBigger.boundingRect("YH").height(), diveSiteName);