From 3eebecacd576c35605aff01324ec66ad9825b0d7 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 20 Aug 2008 10:28:35 +0000 Subject: Fixed various small bugs. --- client/widgets/checkbox.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/widgets/checkbox.cc') 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())); -- cgit v1.2.3