summaryrefslogtreecommitdiff
path: root/core/pim/todo/otaskeditor.cpp
Unidiff
Diffstat (limited to 'core/pim/todo/otaskeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/otaskeditor.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/core/pim/todo/otaskeditor.cpp b/core/pim/todo/otaskeditor.cpp
index bde25ef..68b315d 100644
--- a/core/pim/todo/otaskeditor.cpp
+++ b/core/pim/todo/otaskeditor.cpp
@@ -1,5 +1,5 @@
1#include <qdatetime.h> 1#include <qdatetime.h>
2#include <qlayout.h>
3#include <qlabel.h> 2#include <qlabel.h>
3#include <qlayout.h>
4#include <qmultilineedit.h> 4#include <qmultilineedit.h>
5 5
@@ -7,5 +7,5 @@
7 7
8#include "taskeditoroverview.h" 8#include "taskeditoroverview.h"
9#include "taskeditoradvanced.h" 9#include "taskeditorstatus.h"
10#include "taskeditoralarms.h" 10#include "taskeditoralarms.h"
11 11
@@ -13,10 +13,10 @@
13 13
14OTaskEditor::OTaskEditor(int cur) 14OTaskEditor::OTaskEditor(int cur)
15 : QDialog(0, 0, TRUE ) { 15 : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) {
16 init(); 16 init();
17 init( cur ); 17 init( cur );
18} 18}
19OTaskEditor::OTaskEditor( const OTodo& to) 19OTaskEditor::OTaskEditor( const OTodo& to)
20 : QDialog(0, 0, TRUE ) { 20 : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) {
21 init(); 21 init();
22 init( to ); 22 init( to );
@@ -41,5 +41,5 @@ OTodo OTaskEditor::todo()const{
41 to.setUid(m_uid ); 41 to.setUid(m_uid );
42 m_overView->save( to ); 42 m_overView->save( to );
43 m_adv->save( to ); 43 m_stat->save( to );
44 to.setRecurrence( m_rec->recurrence() ); 44 to.setRecurrence( m_rec->recurrence() );
45 45
@@ -48,5 +48,5 @@ OTodo OTaskEditor::todo()const{
48void OTaskEditor::load(const OTodo& to) { 48void OTaskEditor::load(const OTodo& to) {
49 m_overView->load( to ); 49 m_overView->load( to );
50 m_adv->load( to ); 50 m_stat->load( to );
51 m_rec->setRecurrence( to.recurrence(), to.hasDueDate() ? to.dueDate() : QDate::currentDate() ); 51 m_rec->setRecurrence( to.recurrence(), to.hasDueDate() ? to.dueDate() : QDate::currentDate() );
52} 52}
@@ -62,8 +62,8 @@ void OTaskEditor::init() {
62 */ 62 */
63 m_overView = new TaskEditorOverView( m_tab ); 63 m_overView = new TaskEditorOverView( m_tab );
64 m_tab->addTab( m_overView, "TodoList", tr("Overview") ); 64 m_tab->addTab( m_overView, "todo/info", tr("Information") );
65 65
66 m_adv = new TaskEditorAdvanced( m_tab ); 66 m_stat = new TaskEditorStatus( m_tab );
67 m_tab->addTab( m_adv, "todo/advanced", tr("Advanced") ); 67 m_tab->addTab( m_stat, "TodoList", tr("Status") );
68 68
69 m_alarm = new TaskEditorAlarms( m_tab ); 69 m_alarm = new TaskEditorAlarms( m_tab );
@@ -78,5 +78,5 @@ void OTaskEditor::init() {
78 78
79 m_rec = new ORecurranceWidget( true, QDate::currentDate(), this ); 79 m_rec = new ORecurranceWidget( true, QDate::currentDate(), this );
80 m_tab->addTab( m_rec, "repeat", tr("Recurrance") ); 80 m_tab->addTab( m_rec, "repeat", tr("Recurrence") );
81 81
82 82
@@ -86,5 +86,5 @@ void OTaskEditor::init() {
86 86
87 /* connect due date changed to the recurrence tab */ 87 /* connect due date changed to the recurrence tab */
88 connect(m_overView, SIGNAL(dueDateChanged(const QDate&) ), 88 connect(m_stat, SIGNAL(dueDateChanged(const QDate&) ),
89 m_rec, SLOT(setStartDate(const QDate& ) ) ); 89 m_rec, SLOT(setStartDate(const QDate& ) ) );
90 90