plasma: set the style before creating the native widget of Plasma::TextEdit

otherwise the style pointer is null and the native widget (KTextEdit) does
not get to experience the nativeness, it has been like since before the
fork

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-06 18:59:47 +03:00
parent bac4fbc947
commit c61c158983

View file

@ -52,8 +52,8 @@ TextEdit::TextEdit(QGraphicsWidget *parent)
: QGraphicsProxyWidget(parent),
d(new TextEditPrivate(this))
{
setNativeWidget(new KTextEdit());
d->style = Plasma::Style::sharedStyle();
setNativeWidget(new KTextEdit());
d->initTheming();
}