summaryrefslogtreecommitdiff
path: root/client/widgets/checkbox.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-20 10:28:35 +0000
committerdeva <deva>2008-08-20 10:28:35 +0000
commit3eebecacd576c35605aff01324ec66ad9825b0d7 (patch)
treea4f58503967707cdc1ecab07a0b15b67d32bdab6 /client/widgets/checkbox.cc
parent45702265ce206381bcb02a53b413ad987897b02b (diff)
Fixed various small bugs.
Diffstat (limited to 'client/widgets/checkbox.cc')
-rw-r--r--client/widgets/checkbox.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/widgets/checkbox.cc b/client/widgets/checkbox.cc
index 95f5a53..1f089bb 100644
--- a/client/widgets/checkbox.cc
+++ b/client/widgets/checkbox.cc
@@ -41,8 +41,10 @@ CheckBox::CheckBox(QDomNode &node, MacroWindow *macrowindow)
if(elem.hasAttribute("caption")) {
setText(elem.attribute("caption"));
- } else {
- setText("");
+ }
+
+ if(elem.hasAttribute("help")) {
+ setToolTip(elem.attribute("help"));
}
connect(this, SIGNAL(stateChanged(int)), this, SLOT(state_change()));