Diffstat (limited to 'core/pim/todo/taskeditorstatus.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/todo/taskeditorstatus.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/pim/todo/taskeditorstatus.cpp b/core/pim/todo/taskeditorstatus.cpp index 98e3cea..367dd58 100644 --- a/core/pim/todo/taskeditorstatus.cpp +++ b/core/pim/todo/taskeditorstatus.cpp | |||
@@ -25,15 +25,14 @@ | |||
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "taskeditorstatus.h" | 29 | #include "taskeditorstatus.h" |
30 | 30 | ||
31 | #include <opie/otodo.h> | 31 | #include <opie2/opimmaintainer.h> |
32 | #include <opie/opimmaintainer.h> | 32 | #include <opie2/opimstate.h> |
33 | #include <opie/opimstate.h> | ||
34 | 33 | ||
35 | #include <qpe/datebookmonth.h> | 34 | #include <qpe/datebookmonth.h> |
36 | 35 | ||
37 | #include <qcheckbox.h> | 36 | #include <qcheckbox.h> |
38 | #include <qcombobox.h> | 37 | #include <qcombobox.h> |
39 | #include <qlabel.h> | 38 | #include <qlabel.h> |
@@ -168,13 +167,13 @@ TaskEditorStatus::TaskEditorStatus( QWidget* parent, const char* name, WFlags f | |||
168 | } | 167 | } |
169 | 168 | ||
170 | TaskEditorStatus::~TaskEditorStatus() | 169 | TaskEditorStatus::~TaskEditorStatus() |
171 | { | 170 | { |
172 | } | 171 | } |
173 | 172 | ||
174 | void TaskEditorStatus::load( const OTodo &todo ) | 173 | void TaskEditorStatus::load( const OPimTodo &todo ) |
175 | { | 174 | { |
176 | QDate date = QDate::currentDate(); | 175 | QDate date = QDate::currentDate(); |
177 | QString str = TimeString::longDateString( date ); | 176 | QString str = TimeString::longDateString( date ); |
178 | 177 | ||
179 | // Status | 178 | // Status |
180 | int state = todo.hasState()? todo.state().state() : OPimState::NotStarted; | 179 | int state = todo.hasState()? todo.state().state() : OPimState::NotStarted; |
@@ -220,13 +219,13 @@ void TaskEditorStatus::load( const OTodo &todo ) | |||
220 | state = OPimMaintainer::Nothing; | 219 | state = OPimMaintainer::Nothing; |
221 | cmbMaintMode->setCurrentItem( state ); | 220 | cmbMaintMode->setCurrentItem( state ); |
222 | #endif | 221 | #endif |
223 | // Maintainer - not implemented yet | 222 | // Maintainer - not implemented yet |
224 | } | 223 | } |
225 | 224 | ||
226 | void TaskEditorStatus::save( OTodo &todo ) | 225 | void TaskEditorStatus::save( OPimTodo &todo ) |
227 | { | 226 | { |
228 | QDate inval; | 227 | QDate inval; |
229 | 228 | ||
230 | // Status | 229 | // Status |
231 | todo.setState( OPimState( cmbStatus->currentItem() ) ); | 230 | todo.setState( OPimState( cmbStatus->currentItem() ) ); |
232 | 231 | ||