summaryrefslogtreecommitdiff
path: root/client/widgetbuilder.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-20 12:21:32 +0000
committerdeva <deva>2008-08-20 12:21:32 +0000
commit346bb313cd27383b3c7e54da7750ee4f17758d12 (patch)
tree169a31240919814ff7a76791ba8662e8b056e2e9 /client/widgetbuilder.cc
parent3eebecacd576c35605aff01324ec66ad9825b0d7 (diff)
Added spacer
Diffstat (limited to 'client/widgetbuilder.cc')
-rw-r--r--client/widgetbuilder.cc6
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;