plasma: call QToolButton constructor in Plasma::ToolButton constructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-14 08:43:19 +03:00
parent c4e23a5c3f
commit 7d56c26074

View file

@ -162,7 +162,7 @@ ToolButton::ToolButton(QGraphicsWidget *parent)
d->background->setCacheAllRenderedFrames(true);
d->background->setElementPrefix("normal");
QToolButton *native = new QToolButton;
QToolButton *native = new QToolButton();
connect(native, SIGNAL(clicked()), this, SIGNAL(clicked()));
connect(native, SIGNAL(pressed()), this, SIGNAL(pressed()));
connect(native, SIGNAL(released()), this, SIGNAL(released()));