From 346bb313cd27383b3c7e54da7750ee4f17758d12 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 20 Aug 2008 12:21:32 +0000 Subject: Added spacer --- client/widgetbuilder.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3