summaryrefslogtreecommitdiff
path: root/client/widgets/label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/label.cc')
-rw-r--r--client/widgets/label.cc14
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"));