From c61c1589833f8d3f01b7c3bede523f5f82517b88 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 6 Apr 2024 18:59:47 +0300 Subject: [PATCH] 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 --- plasma/widgets/textedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plasma/widgets/textedit.cpp b/plasma/widgets/textedit.cpp index dfd96f15..ee73b801 100644 --- a/plasma/widgets/textedit.cpp +++ b/plasma/widgets/textedit.cpp @@ -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(); }