QStyleOptionViewItemV4 is deprecated as of Qt 5.7

Trivial change to silence compiler waring about QStyleOptionViewItemV4 being deprecated.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-03-25 16:06:46 +01:00 committed by Dirk Hohndel
parent 0b59954709
commit ae7913599c

View file

@ -452,7 +452,7 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem
QFont fontBigger = qApp->font();
QFont fontSmaller = qApp->font();
QFontMetrics fmBigger(fontBigger);
QStyleOptionViewItemV4 opt = option;
QStyleOptionViewItem opt = option;
const QAbstractProxyModel *proxyModel = dynamic_cast<const QAbstractProxyModel*>(origIdx.model());
QModelIndex index = proxyModel->mapToSource(origIdx);
QStyledItemDelegate::initStyleOption(&opt, index);