summaryrefslogtreecommitdiff
path: root/client/widgets/radiobutton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/radiobutton.cc')
-rw-r--r--client/widgets/radiobutton.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/client/widgets/radiobutton.cc b/client/widgets/radiobutton.cc
index 6de030d..b757828 100644
--- a/client/widgets/radiobutton.cc
+++ b/client/widgets/radiobutton.cc
@@ -27,7 +27,7 @@
#include "radiobutton.h"
#include <QRadioButton>
-RadioButton::RadioButton(QDomNode &node, bool radio_bool)
+RadioButton::RadioButton(QDomNode &node)
: QRadioButton()
{
QDomElement elem = node.toElement();
@@ -46,19 +46,15 @@ RadioButton::RadioButton(QDomNode &node, bool radio_bool)
setText("");
}
- if(radio_bool) {
- setChecked(true);
- } else setChecked(false);
-
if(elem.hasAttribute("value")) {
- radio_value = elem.attribute("value");
+ value = elem.attribute("value");
} else {
printf("XML ERROR!!! Radiobutton item has no value\n");
- radio_value = "none";
+ value = "none";
}
}
QString RadioButton::getValue()
{
- return radio_value;
+ return value;
}