diff options
Diffstat (limited to 'client/widgets')
-rw-r--r-- | client/widgets/button.cc | 8 | ||||
-rw-r--r-- | client/widgets/button.h | 2 |
2 files changed, 10 insertions, 0 deletions
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: |