summaryrefslogtreecommitdiff
path: root/core/pim/todo/todoentryimpl.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/todoentryimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todoentryimpl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp
index dfaf9b4..f8e2f4d 100644
--- a/core/pim/todo/todoentryimpl.cpp
+++ b/core/pim/todo/todoentryimpl.cpp
@@ -63,6 +63,7 @@ NewTaskDialog::NewTaskDialog( const ToDoEvent& task, QWidget *parent,
txtTodo->setText( task.description() );
lneSum->setText( task.summary() );
+ cmbProg->setCurrentItem( task.progress()/20 );
}
/*
@@ -135,7 +136,8 @@ ToDoEvent NewTaskDialog::todoEntry()
todo.setDescription( txtTodo->text() );
todo.setSummary( lneSum->text() );
-
+ QString text = cmbProg->currentText();
+ todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() );
return todo;
}