@@ -631,6 +631,8 @@ QList<QWidget*> LegacySkinParser::parseNode(const QDomElement& node) {
631631 parseSingletonDefinition (node);
632632 } else if (nodeName == " SingletonContainer" ) {
633633 result = wrapWidget (parseStandardWidget<WSingletonContainer>(node));
634+ } else if (nodeName == " Window" ) {
635+ result = wrapWidget (parseWindow (node));
634636 } else {
635637 SKIN_WARNING (node,
636638 *m_pContext,
@@ -751,6 +753,22 @@ QWidget* LegacySkinParser::parseWidgetGroup(const QDomElement& node) {
751753 return pGroup;
752754}
753755
756+ QWidget* LegacySkinParser::parseWindow (const QDomElement& node) {
757+ WWidgetGroup* pWindow = new WWidgetGroup (m_pParent);
758+ pWindow->setWindowFlags (Qt::Window);
759+ pWindow->setWindowTitle (" Mixxx Library" );
760+ pWindow->show ();
761+ setupBaseWidget (node, pWindow);
762+ setupWidget (node, pWindow->toQWidget ());
763+ pWindow->setup (node, *m_pContext);
764+ // Note: if we call setupConnections earlier and it sets the visible property
765+ // to true, the style is not applied correctly
766+ setupConnections (node, pWindow);
767+ pWindow->Init ();
768+ parseChildren (node, pWindow);
769+ return nullptr ;
770+ }
771+
754772QWidget* LegacySkinParser::parseWidgetStack (const QDomElement& node) {
755773 ControlObject* pNextControl = controlFromConfigNode (node.toElement (), " NextControl" );
756774 ConfigKey nextConfigKey;
0 commit comments