From 198b0d886817f2c5bc97cfd11857d4b314dffae3 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 10 Jun 2010 07:03:06 +0000 Subject: Add transaction support on database pr. pracro session. Makes it possible to discard all edited macros. --- client/resumewidget.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'client/resumewidget.cc') diff --git a/client/resumewidget.cc b/client/resumewidget.cc index ac18578..81e3f2c 100644 --- a/client/resumewidget.cc +++ b/client/resumewidget.cc @@ -83,7 +83,7 @@ static QString reformatString(QString help) return output; } -void ResumeWidget::setText(QString text) +void ResumeWidget::setText(QString text, state_t state) { QString f; @@ -120,6 +120,17 @@ void ResumeWidget::setText(QString text) } } + switch(state) { + case NEW: + f = "" + f + ""; + break; + case OLD: + break; + case DIRTY: + f = "" + f + ""; + break; + } + resume->setText(f); } -- cgit v1.2.3