From ce667bf4b2f3de7aab677ac7e7f23bc72d3db80f Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 25 Jul 2007 09:11:31 +0000 Subject: migrated all widgets to use QDomNodes; Implemented the getName functionality --- client/widgets/pushbutton.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/widgets/pushbutton.cc') 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 -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())); } -- cgit v1.2.3