author | zecke <zecke> | 2002-04-13 16:28:40 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-13 16:28:40 (UTC) |
commit | 1eb54898047fab3963debe51fa3e570b361a1215 (patch) (side-by-side diff) | |
tree | 7ba017af1f2807d9710577817e4a13876900a0a7 /core/pim/todo/todoentryimpl.cpp | |
parent | def870c6fcccf2b20d7ce3821055391b18243a24 (diff) | |
download | opie-1eb54898047fab3963debe51fa3e570b361a1215.zip opie-1eb54898047fab3963debe51fa3e570b361a1215.tar.gz opie-1eb54898047fab3963debe51fa3e570b361a1215.tar.bz2 |
move to multiple categories + patch from Stefan Eilers to show the due date
Diffstat (limited to 'core/pim/todo/todoentryimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/todoentryimpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp index 1dc1d44..f938d61 100644 --- a/core/pim/todo/todoentryimpl.cpp +++ b/core/pim/todo/todoentryimpl.cpp @@ -50,3 +50,3 @@ NewTaskDialog::NewTaskDialog( const ToDoEvent& task, QWidget *parent, qWarning("setting category" ); - todo.setCategory( task.category() ); + todo.setCategories( task.allCategories() ); if ( todo.hasDate() ) @@ -130,6 +130,6 @@ ToDoEvent NewTaskDialog::todoEntry() QArray<int> arr = comboCategory->currentCategories(); - int id = arr[0]; - qWarning("id 0: %d",id ); - todo.setCategory( Qtopia::Record::idsToString( arr ) ); + QStringList list; + list = QStringList::split(";", Qtopia::Record::idsToString( arr )) ; qWarning("saving category"); + todo.setCategories( list ); } |