summaryrefslogtreecommitdiff
path: root/core/pim/todo/todoeditor.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/todoeditor.cpp') (more/less context) (show 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,5 +1,5 @@
-#include "todoentryimpl.h"
+#include "otaskeditor.h"
#include "todoeditor.h"
using namespace Todo;
@@ -12,7 +12,7 @@ Editor::~Editor() {
OTodo Editor::newTodo( int cur,
QWidget* par) {
- NewTaskDialog e( cur, par, 0, TRUE );
+ OTaskEditor e( cur);
#if defined(Q_WS_QWS) || defined(_WS_QWS_)
@@ -25,14 +25,16 @@ OTodo Editor::newTodo( int cur,
}else
m_accepted = false;
- 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);
return ev;
}
OTodo Editor::edit( QWidget *wid,
const OTodo& todo ) {
- NewTaskDialog e( todo, wid, 0, TRUE );
+ OTaskEditor e( todo );
e.setCaption( QObject::tr( "Edit Task" ) );
#if defined(Q_WS_QWS) || defined(_WS_QWS_)
@@ -40,7 +42,7 @@ OTodo Editor::edit( QWidget *wid,
#endif
int ret = e.exec();
- OTodo ev = e.todoEntry();
+ OTodo ev = e.todo();
if ( ret == QDialog::Accepted )
m_accepted = true;
else