diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/widgetbuilder.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/widgetbuilder.cc b/client/widgetbuilder.cc index f1011e5..4f39627 100644 --- a/client/widgetbuilder.cc +++ b/client/widgetbuilder.cc @@ -35,7 +35,11 @@ QVector< Widget* > widgetBuilder(QDomNode xml_node, QWidget *parent, MacroWindow QDomElement xml_elem = xml_node.toElement(); QWidget *widget = NULL; - if(xml_elem.tagName() == "frame") { + if(xml_elem.tagName() == "spacer") { + if(parent && parent->layout()) { + ((QBoxLayout*)parent->layout())->addStretch(); + } + } else if(xml_elem.tagName() == "frame") { if(xml_elem.hasAttribute("caption")) { GroupBox *frame = new GroupBox(xml_elem, macrowindow); widget = frame; |