author | zecke <zecke> | 2002-06-16 16:34:50 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-16 16:34:50 (UTC) |
commit | 98f3588c957217c720779945a02bc01a164bfaa5 (patch) (side-by-side diff) | |
tree | fcf86a620f334d9354bd39cf2b436c5372de6d53 /core/pim/todo/todoentryimpl.cpp | |
parent | 3b8192d0f5a41c40092af48df8abc39aa3d1c355 (diff) | |
download | opie-98f3588c957217c720779945a02bc01a164bfaa5.zip opie-98f3588c957217c720779945a02bc01a164bfaa5.tar.gz opie-98f3588c957217c720779945a02bc01a164bfaa5.tar.bz2 |
Progress
Diffstat (limited to 'core/pim/todo/todoentryimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/todoentryimpl.cpp | 4 |
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 @@ -62,8 +62,9 @@ NewTaskDialog::NewTaskDialog( const ToDoEvent& task, QWidget *parent, buttonDate->setText( TimeString::longDateString( date ) ); txtTodo->setText( task.description() ); lneSum->setText( task.summary() ); + cmbProg->setCurrentItem( task.progress()/20 ); } /* * Constructs a NewTaskDialog which is a child of 'parent', with the @@ -134,9 +135,10 @@ ToDoEvent NewTaskDialog::todoEntry() todo.setCompleted( checkCompleted->isChecked() ); todo.setDescription( txtTodo->text() ); todo.setSummary( lneSum->text() ); - + QString text = cmbProg->currentText(); + todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() ); return todo; } |