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/button.cc | |
parent | b74d14e7e8625ce1a148105f69e3406f7d88ecd6 (diff) |
Added common stuff in central file. Fixed help text reformatting.
Diffstat (limited to 'client/widgets/button.cc')
-rw-r--r-- | client/widgets/button.cc | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/client/widgets/button.cc b/client/widgets/button.cc index 0f9df2f..2eee811 100644 --- a/client/widgets/button.cc +++ b/client/widgets/button.cc @@ -27,24 +27,14 @@ #include "button.h" #include <stdio.h> +#include "common.h" + Button::Button(QDomNode &node, MacroWindow *macrowindow) : QPushButton(), Widget(node, macrowindow) { - QDomElement elem = node.toElement(); - - if(elem.hasAttribute("width")) { - //resize(elem.attribute("width").toInt(), height()); - setMinimumWidth(elem.attribute("width").toInt()); - } + setCommonAttributes(this, node); - if(elem.hasAttribute("height")) { - //resize(width(), elem.attribute("height").toInt()); - setMinimumHeight(elem.attribute("height").toInt()); - } - - if(elem.hasAttribute("help")) { - setToolTip(elem.attribute("help")); - } + QDomElement elem = node.toElement(); if(elem.hasAttribute("field")) { field = elem.attribute("field"); |