summaryrefslogtreecommitdiff
path: root/core/pim/todo/todoeditor.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/todoeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todoeditor.cpp12
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,3 +1,3 @@
-#include "todoentryimpl.h"
+#include "otaskeditor.h"
#include "todoeditor.h"
@@ -14,3 +14,3 @@ OTodo Editor::newTodo( int cur,
- NewTaskDialog e( cur, par, 0, TRUE );
+ OTaskEditor e( cur);
@@ -27,3 +27,5 @@ OTodo Editor::newTodo( int cur,
- OTodo ev = e.todoEntry();
+ OTodo ev = e.todo();
+ qWarning("Todo uid");
+ qWarning("Todo %s %d %d", ev.summary().latin1(), ev.progress(), ev.isCompleted() );
ev.setUid(1);
@@ -34,3 +36,3 @@ OTodo Editor::edit( QWidget *wid,
const OTodo& todo ) {
- NewTaskDialog e( todo, wid, 0, TRUE );
+ OTaskEditor e( todo );
e.setCaption( QObject::tr( "Edit Task" ) );
@@ -42,3 +44,3 @@ OTodo Editor::edit( QWidget *wid,
- OTodo ev = e.todoEntry();
+ OTodo ev = e.todo();
if ( ret == QDialog::Accepted )