From 2e2ea4f36044058d068d9dcbf46d44d982da1b2c Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Wed, 22 Feb 2023 21:29:39 -0600 Subject: [PATCH] Gui: Fix use of undocumented init() function --- src/Gui/NotificationBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/NotificationBox.cpp b/src/Gui/NotificationBox.cpp index 4a45cf0c6d..6f0bef9e44 100644 --- a/src/Gui/NotificationBox.cpp +++ b/src/Gui/NotificationBox.cpp @@ -180,7 +180,7 @@ void NotificationLabel::paintEvent(QPaintEvent *ev) { QStylePainter p(this); QStyleOptionFrame opt; - opt.init(this); + opt.initFrom(this); p.drawPrimitive(QStyle::PE_PanelTipLabel, opt); p.end(); QLabel::paintEvent(ev); @@ -191,7 +191,7 @@ void NotificationLabel::resizeEvent(QResizeEvent *e) QStyleHintReturnMask frameMask; QStyleOption option; - option.init(this); + option.initFrom(this); if (style()->styleHint(QStyle::SH_ToolTip_Mask, &option, this, &frameMask)) { setMask(frameMask.region);