From 9ebc4b00ed18463ef56ef1184ecf6759f596d9c5 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Tue, 22 Jul 2025 23:29:19 +0200 Subject: [PATCH] Replaced deprecated QStyleOption::init by QStyleOption::initFrom --- retroshare-gui/src/gui/common/FlowLayout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/common/FlowLayout.h b/retroshare-gui/src/gui/common/FlowLayout.h index ff21f266a..585c98717 100644 --- a/retroshare-gui/src/gui/common/FlowLayout.h +++ b/retroshare-gui/src/gui/common/FlowLayout.h @@ -81,7 +81,7 @@ public: void paintEvent(QPaintEvent *) { QStyleOption opt; - opt.init(this); + opt.initFrom(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }