diff options
author | hjk <hjk@theqtcompany.com> | 2016-01-22 14:00:08 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-01-22 13:23:53 +0000 |
commit | 677effda786d7d6a60b34466b6f442fb71b66999 (patch) | |
tree | bf5ed8bd11853c3b30456dab149080fb9144df05 /src | |
parent | 74eb8db29f2108518a8c9ced5174deed06908ca0 (diff) | |
download | qt-creator-677effda786d7d6a60b34466b6f442fb71b66999.tar.gz |
Remove even more uses of deprecated typedefs
Change-Id: Icb48d484f760eb11ef2d41d8271e43f4f51c2e91
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src')
5 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/coreplugin/find/searchresulttreeitemdelegate.cpp b/src/plugins/coreplugin/find/searchresulttreeitemdelegate.cpp index 04e6d09e36..b0d6849dd3 100644 --- a/src/plugins/coreplugin/find/searchresulttreeitemdelegate.cpp +++ b/src/plugins/coreplugin/find/searchresulttreeitemdelegate.cpp @@ -46,7 +46,7 @@ void SearchResultTreeItemDelegate::paint(QPainter *painter, const QStyleOptionVi painter->save(); - QStyleOptionViewItemV3 opt = setOptions(index, option); + QStyleOptionViewItem opt = setOptions(index, option); painter->setFont(opt.font); QItemDelegate::drawBackground(painter, opt, index); @@ -102,7 +102,7 @@ void SearchResultTreeItemDelegate::setTabWidth(int width) } // returns the width of the line number area -int SearchResultTreeItemDelegate::drawLineNumber(QPainter *painter, const QStyleOptionViewItemV3 &option, +int SearchResultTreeItemDelegate::drawLineNumber(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QModelIndex &index) const { @@ -128,7 +128,7 @@ int SearchResultTreeItemDelegate::drawLineNumber(QPainter *painter, const QStyle option.palette.brush(cg, QPalette::Highlight) : option.palette.color(cg, QPalette::Base).darker(111))); - QStyleOptionViewItemV3 opt = option; + QStyleOptionViewItem opt = option; opt.displayAlignment = Qt::AlignRight | Qt::AlignVCenter; opt.palette.setColor(cg, QPalette::Text, Qt::darkGray); diff --git a/src/plugins/coreplugin/find/searchresulttreeitemdelegate.h b/src/plugins/coreplugin/find/searchresulttreeitemdelegate.h index e8d51825ba..8e4560c9bd 100644 --- a/src/plugins/coreplugin/find/searchresulttreeitemdelegate.h +++ b/src/plugins/coreplugin/find/searchresulttreeitemdelegate.h @@ -39,7 +39,7 @@ public: void setTabWidth(int width); private: - int drawLineNumber(QPainter *painter, const QStyleOptionViewItemV3 &option, const QRect &rect, const QModelIndex &index) const; + int drawLineNumber(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QModelIndex &index) const; void drawText(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QModelIndex &index) const; diff --git a/src/plugins/projectexplorer/taskwindow.cpp b/src/plugins/projectexplorer/taskwindow.cpp index 2546c4c136..16f50ca3a1 100644 --- a/src/plugins/projectexplorer/taskwindow.cpp +++ b/src/plugins/projectexplorer/taskwindow.cpp @@ -112,7 +112,7 @@ private: class Positions { public: - Positions(const QStyleOptionViewItemV4 &options, TaskModel *model) : + Positions(const QStyleOptionViewItem &options, TaskModel *model) : m_totalWidth(options.rect.width()), m_maxFileLength(model->sizeOfFile(options.font)), m_maxLineLength(model->sizeOfLineNumber(options.font)), @@ -670,7 +670,7 @@ TaskDelegate::~TaskDelegate() QSize TaskDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const { - QStyleOptionViewItemV4 opt = option; + QStyleOptionViewItem opt = option; initStyleOption(&opt, index); const QAbstractItemView * view = qobject_cast<const QAbstractItemView *>(opt.widget); @@ -738,7 +738,7 @@ void TaskDelegate::currentChanged(const QModelIndex ¤t, const QModelIndex void TaskDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { - QStyleOptionViewItemV4 opt = option; + QStyleOptionViewItem opt = option; initStyleOption(&opt, index); painter->save(); diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index dce531dcf3..bd5b4a058d 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -4647,7 +4647,7 @@ void TextEditorWidgetPrivate::drawFoldingMarker(QPainter *painter, const QPalett painter->drawPolygon(a); painter->restore(); } else { - QStyleOptionViewItemV2 opt; + QStyleOptionViewItem opt; opt.rect = rect; opt.state = QStyle::State_Active | QStyle::State_Item | QStyle::State_Children; if (expanded) diff --git a/src/plugins/valgrind/callgrindnamedelegate.cpp b/src/plugins/valgrind/callgrindnamedelegate.cpp index 2289897a6a..b6ea553ea6 100644 --- a/src/plugins/valgrind/callgrindnamedelegate.cpp +++ b/src/plugins/valgrind/callgrindnamedelegate.cpp @@ -42,7 +42,7 @@ void NameDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { // init - QStyleOptionViewItemV4 opt(option); + QStyleOptionViewItem opt(option); initStyleOption(&opt, index); const int margin = 2; |