diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-04-08 13:02:50 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2016-04-08 16:32:37 +0000 |
commit | 30fe81c4674ab97b1297aaa0642f7cd6437a5729 (patch) | |
tree | 3d4c02a8a735cb8b3cfd64cf56706f398205762e | |
parent | faf29063691c279562fd2156a75adf70953a9c3d (diff) | |
download | qttools-30fe81c4674ab97b1297aaa0642f7cd6437a5729.tar.gz |
Qt Property Browser: Fix usage of the deprecated QStyleOptionViewItemV2.
Change-Id: I800585587789b6917f0ebd7139ef279349d7be42
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
-rw-r--r-- | src/shared/qtpropertybrowser/qttreepropertybrowser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/qtpropertybrowser/qttreepropertybrowser.cpp b/src/shared/qtpropertybrowser/qttreepropertybrowser.cpp index 236aed493..1f097b6f4 100644 --- a/src/shared/qtpropertybrowser/qttreepropertybrowser.cpp +++ b/src/shared/qtpropertybrowser/qttreepropertybrowser.cpp @@ -344,7 +344,7 @@ void QtPropertyEditorDelegate::paint(QPainter *painter, const QStyleOptionViewIt opt.palette.setColor(QPalette::Text, opt.palette.color(QPalette::BrightText)); } else { c = m_editorPrivate->calculatedBackgroundColor(m_editorPrivate->indexToBrowserItem(index)); - if (c.isValid() && (opt.features & QStyleOptionViewItemV2::Alternate)) + if (c.isValid() && (opt.features & QStyleOptionViewItem::Alternate)) c = c.lighter(112); } if (c.isValid()) |