diff options
author | senator <senator> | 2007-07-25 09:11:31 +0000 |
---|---|---|
committer | senator <senator> | 2007-07-25 09:11:31 +0000 |
commit | ce667bf4b2f3de7aab677ac7e7f23bc72d3db80f (patch) | |
tree | 760a18ca48e59274553ca6c211c08770f031ad56 /client/widgets/pushbutton.cc | |
parent | 22de7bf19fb6fcce8d11c0e01afdfafa2a8c00d6 (diff) |
migrated all widgets to use QDomNodes; Implemented the getName functionality
Diffstat (limited to 'client/widgets/pushbutton.cc')
-rw-r--r-- | client/widgets/pushbutton.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/widgets/pushbutton.cc b/client/widgets/pushbutton.cc index 88fcf61..5a1e305 100644 --- a/client/widgets/pushbutton.cc +++ b/client/widgets/pushbutton.cc @@ -27,9 +27,11 @@ #include "pushbutton.h" #include <stdio.h> -PushButton::PushButton(QWidget *parent, QString caption, QString type) : QPushButton(parent) +PushButton::PushButton(QDomNode node) : QPushButton() { - setText(caption); + QDomElement elem = node.toElement(); + widget_name = elem.attribute("name"); + setText(elem.attribute("caption")); //connect(this, SIGNAL(onClicked()), this, SLOT(clicked())); } |