From ae7913599c1c226f1ce46ca295f9b5e478d0da16 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Sat, 25 Mar 2017 16:06:46 +0100 Subject: QStyleOptionViewItemV4 is deprecated as of Qt 5.7 Trivial change to silence compiler waring about QStyleOptionViewItemV4 being deprecated. Signed-off-by: Jan Mulder --- desktop-widgets/modeldelegates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/modeldelegates.cpp b/desktop-widgets/modeldelegates.cpp index d5ba6359b..f8ebb2591 100644 --- a/desktop-widgets/modeldelegates.cpp +++ b/desktop-widgets/modeldelegates.cpp @@ -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(origIdx.model()); QModelIndex index = proxyModel->mapToSource(origIdx); QStyledItemDelegate::initStyleOption(&opt, index); -- cgit v1.2.3-70-g09d2