summaryrefslogtreecommitdiff
path: root/client/widgets
diff options
context:
space:
mode:
authordeva <deva>2008-09-10 09:03:48 +0000
committerdeva <deva>2008-09-10 09:03:48 +0000
commit0c366ed6b09c06439f3349b220e803b21e4547b9 (patch)
tree0c8c241f12c310360e5e23f6f005274ae1055977 /client/widgets
parentb1175cefcd9d9e67ee0f9e1b0b91bb8360b510b7 (diff)
Added continue without commit action to buttons.
Diffstat (limited to 'client/widgets')
-rw-r--r--client/widgets/button.cc8
-rw-r--r--client/widgets/button.h2
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: