-rw-r--r-- | core/pim/todo/otaskeditor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/todo/otaskeditor.cpp b/core/pim/todo/otaskeditor.cpp index 1a68eb5..8b261de 100644 --- a/core/pim/todo/otaskeditor.cpp +++ b/core/pim/todo/otaskeditor.cpp | |||
@@ -40,48 +40,49 @@ OTodo OTaskEditor::todo()const{ | |||
40 | OTodo to; | 40 | OTodo to; |
41 | to.setUid(m_uid ); | 41 | to.setUid(m_uid ); |
42 | m_overView->save( to ); | 42 | m_overView->save( to ); |
43 | to.setDescription( m_line->text() ); | 43 | to.setDescription( m_line->text() ); |
44 | 44 | ||
45 | return to; | 45 | return to; |
46 | } | 46 | } |
47 | void OTaskEditor::load(const OTodo& to) { | 47 | void OTaskEditor::load(const OTodo& to) { |
48 | m_overView->load( to ); | 48 | m_overView->load( to ); |
49 | m_line->setText( to.description() ); | 49 | m_line->setText( to.description() ); |
50 | } | 50 | } |
51 | void OTaskEditor::init() { | 51 | void OTaskEditor::init() { |
52 | QVBoxLayout* lay = new QVBoxLayout(this); | 52 | QVBoxLayout* lay = new QVBoxLayout(this); |
53 | setCaption("Task Editor"); | 53 | setCaption("Task Editor"); |
54 | m_tab = new OTabWidget(this); | 54 | m_tab = new OTabWidget(this); |
55 | 55 | ||
56 | /* | 56 | /* |
57 | * Add the Widgets | 57 | * Add the Widgets |
58 | */ | 58 | */ |
59 | m_overView = new TaskEditorOverViewImpl(m_tab ); | 59 | m_overView = new TaskEditorOverViewImpl(m_tab ); |
60 | m_tab->addTab( m_overView, QString::null, tr("Overview") ); | 60 | m_tab->addTab( m_overView, QString::null, tr("Overview") ); |
61 | 61 | ||
62 | m_adv = new TaskEditorAdvanced( m_tab ); | 62 | m_adv = new TaskEditorAdvanced( m_tab ); |
63 | m_line = new QMultiLineEdit(m_adv ); | 63 | m_line = new QMultiLineEdit(m_adv ); |
64 | m_line->setWordWrap( QMultiLineEdit::WidgetWidth ); | ||
64 | QLabel* label = new QLabel(m_adv ); | 65 | QLabel* label = new QLabel(m_adv ); |
65 | label->setText( tr("Description") ); | 66 | label->setText( tr("Description") ); |
66 | ((QGridLayout*) m_adv->layout() )->addWidget( label,3, 0 ); | 67 | ((QGridLayout*) m_adv->layout() )->addWidget( label,3, 0 ); |
67 | ((QGridLayout*) m_adv->layout())->addWidget( m_line,4,0 ); | 68 | ((QGridLayout*) m_adv->layout())->addWidget( m_line,4,0 ); |
68 | m_tab->addTab( m_adv, QString::null, tr("Advanced") ); | 69 | m_tab->addTab( m_adv, QString::null, tr("Advanced") ); |
69 | 70 | ||
70 | m_alarm = new TaskEditorAlarms( m_tab ); | 71 | m_alarm = new TaskEditorAlarms( m_tab ); |
71 | m_tab->addTab( m_alarm, QString::null, tr("Alarms") ); | 72 | m_tab->addTab( m_alarm, QString::null, tr("Alarms") ); |
72 | 73 | ||
73 | m_remind = new TaskEditorAlarms( m_tab ); | 74 | m_remind = new TaskEditorAlarms( m_tab ); |
74 | m_tab->addTab( m_remind, QString::null, tr("Reminders") ); | 75 | m_tab->addTab( m_remind, QString::null, tr("Reminders") ); |
75 | 76 | ||
76 | QLabel* lbl = new QLabel(m_tab ); | 77 | QLabel* lbl = new QLabel(m_tab ); |
77 | lbl->setText( tr("X-Ref") ); | 78 | lbl->setText( tr("X-Ref") ); |
78 | m_tab->addTab( lbl, QString::null, tr("X-Ref") ); | 79 | m_tab->addTab( lbl, QString::null, tr("X-Ref") ); |
79 | 80 | ||
80 | m_rec = new ORecurranceWidget( true, QDate::currentDate(), this ); | 81 | m_rec = new ORecurranceWidget( true, QDate::currentDate(), this ); |
81 | m_tab->addTab( m_rec, QString::null, tr("Recurrance") ); | 82 | m_tab->addTab( m_rec, QString::null, tr("Recurrance") ); |
82 | 83 | ||
83 | lay->addWidget(m_tab ); | 84 | lay->addWidget(m_tab ); |
84 | 85 | ||
85 | /* signal and slots */ | 86 | /* signal and slots */ |
86 | connect(m_overView, SIGNAL(recurranceEnabled(bool) ), | 87 | connect(m_overView, SIGNAL(recurranceEnabled(bool) ), |
87 | m_rec, SLOT(setEnabled(bool) ) ); | 88 | m_rec, SLOT(setEnabled(bool) ) ); |