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 | |||
@@ -60,12 +60,13 @@ NewTaskDialog::NewTaskDialog( const ToDoEvent& task, QWidget *parent, | |||
60 | checkCompleted->setChecked( task.isCompleted() ); | 60 | checkCompleted->setChecked( task.isCompleted() ); |
61 | checkDate->setChecked( task.hasDate() ); | 61 | checkDate->setChecked( task.hasDate() ); |
62 | buttonDate->setText( TimeString::longDateString( date ) ); | 62 | buttonDate->setText( TimeString::longDateString( date ) ); |
63 | 63 | ||
64 | txtTodo->setText( task.description() ); | 64 | txtTodo->setText( task.description() ); |
65 | lneSum->setText( task.summary() ); | 65 | lneSum->setText( task.summary() ); |
66 | cmbProg->setCurrentItem( task.progress()/20 ); | ||
66 | } | 67 | } |
67 | 68 | ||
68 | /* | 69 | /* |
69 | * Constructs a NewTaskDialog which is a child of 'parent', with the | 70 | * Constructs a NewTaskDialog which is a child of 'parent', with the |
70 | * name 'name' and widget flags set to 'f' | 71 | * name 'name' and widget flags set to 'f' |
71 | * | 72 | * |
@@ -132,13 +133,14 @@ ToDoEvent NewTaskDialog::todoEntry() | |||
132 | } | 133 | } |
133 | todo.setPriority( comboPriority->currentItem() + 1 ); | 134 | todo.setPriority( comboPriority->currentItem() + 1 ); |
134 | todo.setCompleted( checkCompleted->isChecked() ); | 135 | todo.setCompleted( checkCompleted->isChecked() ); |
135 | 136 | ||
136 | todo.setDescription( txtTodo->text() ); | 137 | todo.setDescription( txtTodo->text() ); |
137 | todo.setSummary( lneSum->text() ); | 138 | todo.setSummary( lneSum->text() ); |
138 | 139 | QString text = cmbProg->currentText(); | |
140 | todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() ); | ||
139 | return todo; | 141 | return todo; |
140 | } | 142 | } |
141 | 143 | ||
142 | 144 | ||
143 | /*! | 145 | /*! |
144 | 146 | ||