diff options
author | deva <deva> | 2008-08-28 14:13:48 +0000 |
---|---|---|
committer | deva <deva> | 2008-08-28 14:13:48 +0000 |
commit | 477c9fd7f038cd43207c8634d53d0949814ecb4c (patch) | |
tree | 4d4f849c281aa4402c3f7bd95546c21ebe287e55 /client/widgets/label.cc | |
parent | b74d14e7e8625ce1a148105f69e3406f7d88ecd6 (diff) |
Added common stuff in central file. Fixed help text reformatting.
Diffstat (limited to 'client/widgets/label.cc')
-rw-r--r-- | client/widgets/label.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/client/widgets/label.cc b/client/widgets/label.cc index 1d58665..61b60c5 100644 --- a/client/widgets/label.cc +++ b/client/widgets/label.cc @@ -27,22 +27,14 @@ #include "label.h" #include <stdio.h> +#include "common.h" + Label::Label(QDomNode &node, MacroWindow *macrowindow) : QLabel(), Widget(node, macrowindow) { QDomElement elem = node.toElement(); - if(elem.hasAttribute("width")) { - setMinimumWidth(elem.attribute("width").toInt()); - } - - if(elem.hasAttribute("height")) { - setMinimumHeight(elem.attribute("height").toInt()); - } - - if(elem.hasAttribute("help")) { - setToolTip(elem.attribute("help")); - } + setCommonAttributes(this, node); if(elem.hasAttribute("caption")) { setText(elem.attribute("caption")); |