From 31facd90fcd595d38520cf05dcedfd03283a74c3 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 17 Mar 2008 11:30:34 +0000 Subject: recent changes --- client/widgets/pushbutton.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'client/widgets/pushbutton.cc') diff --git a/client/widgets/pushbutton.cc b/client/widgets/pushbutton.cc index 1e22190..8d74e4e 100644 --- a/client/widgets/pushbutton.cc +++ b/client/widgets/pushbutton.cc @@ -41,6 +41,10 @@ PushButton::PushButton(QDomNode node) //resize(width(), elem.attribute("height").toInt()); setMinimumHeight(elem.attribute("height").toInt()); } + + if(elem.hasAttribute("field")) { + field = elem.attribute("field"); + } if(elem.hasAttribute("caption")) { setText(elem.attribute("caption")); @@ -55,6 +59,8 @@ PushButton::PushButton(QDomNode node) connect(this, SIGNAL(clicked()), this, SLOT(reset())); } else if(elem.attribute("action") == "cancel") { connect(this, SIGNAL(clicked()), this, SLOT(cancel())); + } else if(elem.attribute("action") == "continue") { + connect(this, SIGNAL(clicked()), this, SLOT(cont())); } } else { setEnabled(false); @@ -83,3 +89,9 @@ void PushButton::cancel() emit act_cancel(); printf("Emit: cancel\n"); } + +void PushButton::cont() +{ + emit act_continue(); + printf("Emit: continue\n"); +} -- cgit v1.2.3