summaryrefslogtreecommitdiff
path: root/client/widgets/lineedit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/lineedit.cc')
-rw-r--r--client/widgets/lineedit.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/client/widgets/lineedit.cc b/client/widgets/lineedit.cc
index 62e1aa8..6c3264b 100644
--- a/client/widgets/lineedit.cc
+++ b/client/widgets/lineedit.cc
@@ -27,17 +27,11 @@
#include "lineedit.h"
#include <stdio.h>
-LineEdit::LineEdit(QDomNode node) : QLineEdit()
+LineEdit::LineEdit(QDomNode node)
+ : QLineEdit(), Widget(node)
{
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"));
connect(this, SIGNAL(textChanged(QString)), this, SLOT(changed(QString)));