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());
|
const QAbstractProxyModel *proxyModel = dynamic_cast<const QAbstractProxyModel*>(origIdx.model());
|
||||||
QModelIndex index = proxyModel->mapToSource(origIdx);
|
QModelIndex index = proxyModel->mapToSource(origIdx);
|
||||||
QStyledItemDelegate::initStyleOption(&opt, index);
|
QStyledItemDelegate::initStyleOption(&opt, index);
|
||||||
QBrush bg;
|
|
||||||
QString diveSiteName = index.data().toString();
|
QString diveSiteName = index.data().toString();
|
||||||
QString bottomText;
|
QString bottomText;
|
||||||
QIcon icon = index.data(Qt::DecorationRole).value<QIcon>();
|
QIcon icon = index.data(Qt::DecorationRole).value<QIcon>();
|
||||||
|
@ -565,13 +564,6 @@ print_part:
|
||||||
opt.icon = QIcon();
|
opt.icon = QIcon();
|
||||||
qApp->style()->drawControl(QStyle::CE_ItemViewItem, &opt, painter, NULL);
|
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->save();
|
||||||
painter->setBrush(option.palette.text());
|
painter->setBrush(option.palette.text());
|
||||||
painter->setFont(fontBigger);
|
painter->setFont(fontBigger);
|
||||||
|
|
Loading…
Add table
Reference in a new issue