summaryrefslogtreecommitdiff
path: root/client/widgets/radiobuttons.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/radiobuttons.cc')
-rw-r--r--client/widgets/radiobuttons.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/client/widgets/radiobuttons.cc b/client/widgets/radiobuttons.cc
index 0c3892c..f0c9e8c 100644
--- a/client/widgets/radiobuttons.cc
+++ b/client/widgets/radiobuttons.cc
@@ -55,6 +55,10 @@ RadioButtons::RadioButtons(QDomNode &node, MacroWindow *macrowindow)
setMinimumHeight(elem.attribute("height").toInt());
}
+ if(elem.hasAttribute("help")) {
+ setToolTip(elem.attribute("help"));
+ }
+
QDomNodeList children = node.childNodes();
for (int i=0; i<children.count();i++) {
@@ -66,12 +70,7 @@ RadioButtons::RadioButtons(QDomNode &node, MacroWindow *macrowindow)
layout()->addWidget(radiobutton);
radiobutton_list.push_back(radiobutton);
}
-
- /* // This is done later
- if(elem.hasAttribute("value")) {
- setValue(elem.attribute("value"));
- }
- */
+
layout()->setContentsMargins(0,0,0,0);
}