summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/widgets/checkgroupbox.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/client/widgets/checkgroupbox.cc b/client/widgets/checkgroupbox.cc
index 2298105..a5692b2 100644
--- a/client/widgets/checkgroupbox.cc
+++ b/client/widgets/checkgroupbox.cc
@@ -49,17 +49,17 @@ CheckGroupBox::CheckGroupBox(QDomNode &node, MacroWindow *macrowindow)
groupbox = new QGroupBox();
groupbox->setCheckable(true);
connect(groupbox, SIGNAL(toggled(bool)), this, SLOT(state_change(bool)));
- if(elem.hasAttribute("caption")) {
- groupbox->setTitle(elem.attribute("caption"));
- }
widget = groupbox;
- setCommonAttributes(widget, node);
setCommonLayout(widget, node);
addChildren(node, widget->layout());
+ if(elem.hasAttribute("caption")) {
+ groupbox->setTitle(elem.attribute("caption"));
+ }
+
} else if(type == "simple") {
widget = new QWidget();
widget->setContentsMargins(0,0,0,0);
@@ -75,7 +75,6 @@ CheckGroupBox::CheckGroupBox(QDomNode &node, MacroWindow *macrowindow)
container = new QWidget();
l->addWidget(container);
- setCommonAttributes(widget, node);
setCommonLayout(container, node);
addChildren(node, container->layout());
@@ -86,6 +85,8 @@ CheckGroupBox::CheckGroupBox(QDomNode &node, MacroWindow *macrowindow)
ERROR(checkgroupbox, "Illegal value of attribute 'type'\n");
}
+ setCommonAttributes(widget, node);
+
//
// From CheckBox
//