diff options
author | m0dB <79429057+m0dB@users.noreply.github.com> | 2023-05-19 03:05:43 +0200 |
---|---|---|
committer | m0dB <79429057+m0dB@users.noreply.github.com> | 2023-05-27 01:28:25 +0200 |
commit | 63cdb1599a95100c8e51dcfb26280ffcf67336b2 (patch) | |
tree | d7fb7f34d4e35ac768cb32f01f72d3ab86b650bb | |
parent | d01787c243d9743a415764cae7f3bcc182e992be (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.cpp | 6 |
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; |