Gui: Fix use of undocumented init() function
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user