summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorm0dB <79429057+m0dB@users.noreply.github.com>2023-05-19 03:05:43 +0200
committerm0dB <79429057+m0dB@users.noreply.github.com>2023-05-27 01:28:25 +0200
commit63cdb1599a95100c8e51dcfb26280ffcf67336b2 (patch)
treed7fb7f34d4e35ac768cb32f01f72d3ab86b650bb
parentd01787c243d9743a415764cae7f3bcc182e992be (diff)
fix for style not being applied correctly to WWidgetGroup when the visible property has a binding which resulted in wrong sized children, e.g wspinny inside LateNights SpinnyCoverContainer_Small
-rw-r--r--src/skin/legacy/legacyskinparser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/skin/legacy/legacyskinparser.cpp b/src/skin/legacy/legacyskinparser.cpp
index db61c5f911..e6810be402 100644
--- a/src/skin/legacy/legacyskinparser.cpp
+++ b/src/skin/legacy/legacyskinparser.cpp
@@ -720,8 +720,12 @@ void LegacySkinParser::parseChildren(
QWidget* LegacySkinParser::parseWidgetGroup(const QDomElement& node) {
WWidgetGroup* pGroup = new WWidgetGroup(m_pParent);
- commonWidgetSetup(node, pGroup);
+ setupBaseWidget(node, pGroup);
+ setupWidget(node, pGroup->toQWidget());
pGroup->setup(node, *m_pContext);
+ // Note: if we call setupConnections earlier and it sets the visible property
+ // to true, the style is not applied correctly
+ setupConnections(node, pGroup);
pGroup->Init();
parseChildren(node, pGroup);
return pGroup;