mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
73ac9848cb
commit
ae03ece7fa
1 changed files with 0 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue