Diffstat (limited to 'core/pim/todo/todoeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/todoeditor.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/core/pim/todo/todoeditor.cpp b/core/pim/todo/todoeditor.cpp index c9ade20..e19ab8d 100644 --- a/core/pim/todo/todoeditor.cpp +++ b/core/pim/todo/todoeditor.cpp | |||
@@ -1,5 +1,5 @@ | |||
1 | 1 | ||
2 | #include "todoentryimpl.h" | 2 | #include "otaskeditor.h" |
3 | #include "todoeditor.h" | 3 | #include "todoeditor.h" |
4 | 4 | ||
5 | using namespace Todo; | 5 | using namespace Todo; |
@@ -12,7 +12,7 @@ Editor::~Editor() { | |||
12 | OTodo Editor::newTodo( int cur, | 12 | OTodo Editor::newTodo( int cur, |
13 | QWidget* par) { | 13 | QWidget* par) { |
14 | 14 | ||
15 | NewTaskDialog e( cur, par, 0, TRUE ); | 15 | OTaskEditor e( cur); |
16 | 16 | ||
17 | 17 | ||
18 | #if defined(Q_WS_QWS) || defined(_WS_QWS_) | 18 | #if defined(Q_WS_QWS) || defined(_WS_QWS_) |
@@ -25,14 +25,16 @@ OTodo Editor::newTodo( int cur, | |||
25 | }else | 25 | }else |
26 | m_accepted = false; | 26 | m_accepted = false; |
27 | 27 | ||
28 | OTodo ev = e.todoEntry(); | 28 | OTodo ev = e.todo(); |
29 | qWarning("Todo uid"); | ||
30 | qWarning("Todo %s %d %d", ev.summary().latin1(), ev.progress(), ev.isCompleted() ); | ||
29 | ev.setUid(1); | 31 | ev.setUid(1); |
30 | 32 | ||
31 | return ev; | 33 | return ev; |
32 | } | 34 | } |
33 | OTodo Editor::edit( QWidget *wid, | 35 | OTodo Editor::edit( QWidget *wid, |
34 | const OTodo& todo ) { | 36 | const OTodo& todo ) { |
35 | NewTaskDialog e( todo, wid, 0, TRUE ); | 37 | OTaskEditor e( todo ); |
36 | e.setCaption( QObject::tr( "Edit Task" ) ); | 38 | e.setCaption( QObject::tr( "Edit Task" ) ); |
37 | 39 | ||
38 | #if defined(Q_WS_QWS) || defined(_WS_QWS_) | 40 | #if defined(Q_WS_QWS) || defined(_WS_QWS_) |
@@ -40,7 +42,7 @@ OTodo Editor::edit( QWidget *wid, | |||
40 | #endif | 42 | #endif |
41 | int ret = e.exec(); | 43 | int ret = e.exec(); |
42 | 44 | ||
43 | OTodo ev = e.todoEntry(); | 45 | OTodo ev = e.todo(); |
44 | if ( ret == QDialog::Accepted ) | 46 | if ( ret == QDialog::Accepted ) |
45 | m_accepted = true; | 47 | m_accepted = true; |
46 | else | 48 | else |