summaryrefslogtreecommitdiff
path: root/client/widgets/textedit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/textedit.cc')
-rw-r--r--client/widgets/textedit.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/client/widgets/textedit.cc b/client/widgets/textedit.cc
index 1d1babe..d1bd6e4 100644
--- a/client/widgets/textedit.cc
+++ b/client/widgets/textedit.cc
@@ -27,19 +27,13 @@
#include "textedit.h"
#include <stdio.h>
-TextEdit::TextEdit(QDomNode node) : QTextEdit()
+TextEdit::TextEdit(QDomNode node)
+ : QTextEdit(), Widget(node)
{
setAutoFillBackground(true); /* Default is false, which disables background
color manipulation.*/
QDomElement elem = node.toElement();
-
- if(elem.hasAttribute("name")) {
- widget_name = elem.attribute("name");
- } else {
- printf("XML ERROR!! Unnamed widget of type: %s\n",
- elem.tagName().toStdString().c_str());
- }
if(elem.hasAttribute("regexp")) {
rx = QRegExp(elem.attribute("regexp"));