From 0c366ed6b09c06439f3349b220e803b21e4547b9 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 10 Sep 2008 09:03:48 +0000 Subject: Added continue without commit action to buttons. --- client/widgets/button.cc | 8 ++++++++ client/widgets/button.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'client/widgets') diff --git a/client/widgets/button.cc b/client/widgets/button.cc index 2eee811..c524084 100644 --- a/client/widgets/button.cc +++ b/client/widgets/button.cc @@ -55,6 +55,8 @@ Button::Button(QDomNode &node, MacroWindow *macrowindow) connect(this, SIGNAL(clicked()), this, SLOT(cancel())); } else if(elem.attribute("action") == "continue") { connect(this, SIGNAL(clicked()), this, SLOT(cont())); + } else if(elem.attribute("action") == "continue_nocommit") { + connect(this, SIGNAL(clicked()), this, SLOT(cont_nocommit())); } } else { setEnabled(false); @@ -84,3 +86,9 @@ void Button::cont() emit act_continue(field); printf("Emit: continue\n"); } + +void Button::cont_nocommit() +{ + emit act_continue_nocommit(field); + printf("Emit: continue_nocommit\n"); +} diff --git a/client/widgets/button.h b/client/widgets/button.h index effcd79..aba7ac7 100644 --- a/client/widgets/button.h +++ b/client/widgets/button.h @@ -44,12 +44,14 @@ public slots: void reset(); void cancel(); void cont(); + void cont_nocommit(); signals: void act_commit(); void act_reset(); void act_cancel(); void act_continue(QString); + void act_continue_nocommit(QString); private: -- cgit v1.2.3