From bddd5b021c19feefa5ae6a785d1b5ce2147b5ce4 Mon Sep 17 00:00:00 2001 From: zneix Date: Sat, 31 Jul 2021 22:41:15 +0200 Subject: [PATCH] QStyleOption::init() -> QStyleOption::initFrom() Reference: - https://doc.qt.io/qt-5/qstyleoption-obsolete.html#init --- src/widgets/helper/SettingsDialogTab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/helper/SettingsDialogTab.cpp b/src/widgets/helper/SettingsDialogTab.cpp index a3b7bf81e..0160c496f 100644 --- a/src/widgets/helper/SettingsDialogTab.cpp +++ b/src/widgets/helper/SettingsDialogTab.cpp @@ -53,7 +53,7 @@ void SettingsDialogTab::paintEvent(QPaintEvent *) QPainter painter(this); QStyleOption opt; - opt.init(this); + opt.initFrom(this); this->style()->drawPrimitive(QStyle::PE_Widget, &opt, &painter, this);