mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
0b59954709
commit
ae7913599c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue