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>
This commit is contained in:
Tomaz Canabrava 2015-07-20 20:42:08 -03:00 committed by Dirk Hohndel
parent 73ac9848cb
commit ae03ece7fa

View file

@ -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>();
@ -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);