diff options
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())); } |