diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-03-25 16:06:46 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-26 21:55:24 -0700 |
commit | ae7913599c1c226f1ce46ca295f9b5e478d0da16 (patch) | |
tree | 5002ff0e35f384e746f6ed3d685d748b97867634 /desktop-widgets | |
parent | 0b5995470963a2b123d972ff932d28883cc21b9d (diff) | |
download | subsurface-ae7913599c1c226f1ce46ca295f9b5e478d0da16.tar.gz |
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/modeldelegates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<const QAbstractProxyModel*>(origIdx.model()); QModelIndex index = proxyModel->mapToSource(origIdx); QStyledItemDelegate::initStyleOption(&opt, index); |