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/textedit.cc | |
parent | b74d14e7e8625ce1a148105f69e3406f7d88ecd6 (diff) |
Added common stuff in central file. Fixed help text reformatting.
Diffstat (limited to 'client/widgets/textedit.cc')
-rw-r--r-- | client/widgets/textedit.cc | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/client/widgets/textedit.cc b/client/widgets/textedit.cc index 0cd2d4f..8b18a3d 100644 --- a/client/widgets/textedit.cc +++ b/client/widgets/textedit.cc @@ -25,39 +25,18 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "textedit.h" -#include <stdio.h> #include <QPalette> +#include <stdio.h> + +#include "common.h" + TextEdit::TextEdit(QDomNode &node, MacroWindow *macrowindow) : QTextEdit(), Widget(node, macrowindow) { - //setAutoFillBackground(true); /* Default is false, which disables background - // color manipulation.*/ - - 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); connect(this, SIGNAL(textChanged()), this, SLOT(changed())); - - /* // This is done later - if(elem.hasAttribute("value")) { - setValue(elem.attribute("value")); - } else { - setValue(" "); - setValue(""); - } - */ } void TextEdit::changed() |