summaryrefslogtreecommitdiff
path: root/client/widgets/lineedit.cc
diff options
context:
space:
mode:
authorsenator <senator>2007-07-25 09:11:31 +0000
committersenator <senator>2007-07-25 09:11:31 +0000
commitce667bf4b2f3de7aab677ac7e7f23bc72d3db80f (patch)
tree760a18ca48e59274553ca6c211c08770f031ad56 /client/widgets/lineedit.cc
parent22de7bf19fb6fcce8d11c0e01afdfafa2a8c00d6 (diff)
migrated all widgets to use QDomNodes; Implemented the getName functionality
Diffstat (limited to 'client/widgets/lineedit.cc')
-rw-r--r--client/widgets/lineedit.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/widgets/lineedit.cc b/client/widgets/lineedit.cc
index 686791d..d50ec6b 100644
--- a/client/widgets/lineedit.cc
+++ b/client/widgets/lineedit.cc
@@ -30,6 +30,7 @@
LineEdit::LineEdit(QDomNode node) : QLineEdit()
{
QDomElement elem = node.toElement();
+ widget_name = elem.attribute("name");
rx = QRegExp(elem.attribute("regexp"));
connect(this, SIGNAL(textChanged(QString)), this, SLOT(changed(QString)));
@@ -54,7 +55,7 @@ void LineEdit::changed(QString text)
valid = false;
}
setPalette(palette);
- printf("%s\n", text.toStdString().c_str());
+ //printf("%s\n", text.toStdString().c_str());
}
bool LineEdit::isValid()