diff options
author | senator <senator> | 2008-03-17 11:30:34 +0000 |
---|---|---|
committer | senator <senator> | 2008-03-17 11:30:34 +0000 |
commit | 31facd90fcd595d38520cf05dcedfd03283a74c3 (patch) | |
tree | 3111586582e826a857a0af00b5d205ae1b1a4b6f /client/widgets/pushbutton.cc | |
parent | 96c3b5c064a26b8598943a122d9b6ecbdf1062e9 (diff) |
recent changes
Diffstat (limited to 'client/widgets/pushbutton.cc')
-rw-r--r-- | client/widgets/pushbutton.cc | 12 |
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"); +} |