From ae03ece7fade3dd9249b2385493e79099f7f2b92 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 20 Jul 2015 20:42:08 -0300 Subject: Code uneeded because the drawControw does this by itself Removing dead code. the call above this does that already. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.cpp | 8 -------- 1 file changed, 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(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(); @@ -565,13 +564,6 @@ print_part: opt.icon = QIcon(); 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); -- cgit v1.2.3-70-g09d2