Gui: Fix use of undocumented init() function

This commit is contained in:
Chris Hennes
2023-02-22 21:29:39 -06:00
committed by wwmayer
parent ecd660ed7e
commit 2e2ea4f360

View File

@@ -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);