summaryrefslogtreecommitdiff
path: root/src/libs/utils/annotateditemdelegate.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-01-19 17:20:52 +0100
committerhjk <hjk@theqtcompany.com>2016-01-20 07:05:36 +0000
commitaac1fa5e9f485c7f00ba0747207990ceab8a6f67 (patch)
tree1eb1c4b1de8b11defa828e20c92c39fc8ce16cbb /src/libs/utils/annotateditemdelegate.cpp
parentdc6968d1b886ac9e78393475f4774f19995ff4cb (diff)
downloadqt-creator-aac1fa5e9f485c7f00ba0747207990ceab8a6f67.tar.gz
Utils: Remove deprecated use of style options
Change-Id: I4403e459f700d2cc52f7d475a9c6d89ab2896485 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/annotateditemdelegate.cpp')
-rw-r--r--src/libs/utils/annotateditemdelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/annotateditemdelegate.cpp b/src/libs/utils/annotateditemdelegate.cpp
index 4cf341f476..0756f000f7 100644
--- a/src/libs/utils/annotateditemdelegate.cpp
+++ b/src/libs/utils/annotateditemdelegate.cpp
@@ -60,7 +60,7 @@ void AnnotatedItemDelegate::paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index) const
{
- QStyleOptionViewItemV4 opt = option;
+ QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
QStyle *style = QApplication::style();
@@ -103,7 +103,7 @@ void AnnotatedItemDelegate::paint(QPainter *painter,
QSize AnnotatedItemDelegate::sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const
{
- QStyleOptionViewItemV4 opt = option;
+ QStyleOptionViewItem opt = option;
initStyleOption(&opt, index);
const QString &annotation = index.data(m_annotationRole).toString();