summaryrefslogtreecommitdiff
path: root/client/widgets/pushbutton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/pushbutton.cc')
-rw-r--r--client/widgets/pushbutton.cc12
1 files changed, 12 insertions, 0 deletions
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");
+}