summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qheaderview.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-06-18 19:59:41 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-06-21 12:51:24 +0200
commit26a226630443a20bb2d3015431c019614e33a061 (patch)
treeb5dc22b1696ba0ee14311e41c3903344f6e92404 /src/widgets/itemviews/qheaderview.cpp
parentb1433a6988d79c162ab5bed116be1ffeedca2ea9 (diff)
Remove deprecated QStyleOption::init()
Even it was not marked as deprecated the replacement function initFrom() is available since Qt4 times (and init() is deprecated since then) Change-Id: I09a4ebbf66b01fbe7aec67691dc68d2e42d1cd78 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/itemviews/qheaderview.cpp')
-rw-r--r--src/widgets/itemviews/qheaderview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp
index e127f7bba4..60020e2072 100644
--- a/src/widgets/itemviews/qheaderview.cpp
+++ b/src/widgets/itemviews/qheaderview.cpp
@@ -2478,7 +2478,7 @@ void QHeaderView::paintEvent(QPaintEvent *e)
}
QStyleOption opt;
- opt.init(this);
+ opt.initFrom(this);
// Paint the area beyond where there are indexes
if (d->reverse()) {
opt.state |= QStyle::State_Horizontal;