Diffstat (limited to 'core/pim/todo/taskeditoroverview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/taskeditoroverview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/todo/taskeditoroverview.cpp b/core/pim/todo/taskeditoroverview.cpp index 415dcf2..294acb9 100644 --- a/core/pim/todo/taskeditoroverview.cpp +++ b/core/pim/todo/taskeditoroverview.cpp | |||
@@ -19,25 +19,25 @@ | |||
19 | : = ...= . :.=- | 19 | : = ...= . :.=- |
20 | -. .:....=;==+<; You should have received a copy of the GNU | 20 | -. .:....=;==+<; You should have received a copy of the GNU |
21 | -_. . . )=. = General Public License along with | 21 | -_. . . )=. = General Public License along with |
22 | -- :-=` this library; see the file COPYING.LIB. | 22 | -- :-=` this library; see the file COPYING.LIB. |
23 | If not, write to the Free Software Foundation, | 23 | If not, write to the Free Software Foundation, |
24 | Inc., 59 Temple Place - Suite 330, | 24 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "taskeditoroverview.h" | 29 | #include "taskeditoroverview.h" |
30 | 30 | ||
31 | #include <opie/orecur.h> | 31 | //#include <opie2/opimrecurrence.h> |
32 | 32 | ||
33 | #include <qpe/categoryselect.h> | 33 | #include <qpe/categoryselect.h> |
34 | #include <qpe/datebookmonth.h> | 34 | #include <qpe/datebookmonth.h> |
35 | #include <qpe/resource.h> | 35 | #include <qpe/resource.h> |
36 | 36 | ||
37 | #include <qcheckbox.h> | 37 | #include <qcheckbox.h> |
38 | #include <qlabel.h> | 38 | #include <qlabel.h> |
39 | #include <qlayout.h> | 39 | #include <qlayout.h> |
40 | #include <qmultilineedit.h> | 40 | #include <qmultilineedit.h> |
41 | #include <qwhatsthis.h> | 41 | #include <qwhatsthis.h> |
42 | 42 | ||
43 | TaskEditorOverView::TaskEditorOverView( QWidget* parent, const char* name, WFlags fl ) | 43 | TaskEditorOverView::TaskEditorOverView( QWidget* parent, const char* name, WFlags fl ) |
@@ -118,46 +118,46 @@ TaskEditorOverView::TaskEditorOverView( QWidget* parent, const char* name, WFla | |||
118 | layout->addWidget( label, 5, 0 ); | 118 | layout->addWidget( label, 5, 0 ); |
119 | QWhatsThis::add( label, tr( "Enter any additional information about this task here." ) ); | 119 | QWhatsThis::add( label, tr( "Enter any additional information about this task here." ) ); |
120 | mleNotes = new QMultiLineEdit( container ); | 120 | mleNotes = new QMultiLineEdit( container ); |
121 | mleNotes->setWordWrap( QMultiLineEdit::WidgetWidth ); | 121 | mleNotes->setWordWrap( QMultiLineEdit::WidgetWidth ); |
122 | layout->addMultiCellWidget( mleNotes, 6, 6, 0, 1 ); | 122 | layout->addMultiCellWidget( mleNotes, 6, 6, 0, 1 ); |
123 | QWhatsThis::add( mleNotes, tr( "Enter any additional information about this task here." ) ); | 123 | QWhatsThis::add( mleNotes, tr( "Enter any additional information about this task here." ) ); |
124 | } | 124 | } |
125 | 125 | ||
126 | TaskEditorOverView::~TaskEditorOverView() | 126 | TaskEditorOverView::~TaskEditorOverView() |
127 | { | 127 | { |
128 | } | 128 | } |
129 | 129 | ||
130 | void TaskEditorOverView::load( const OTodo& todo ) | 130 | void TaskEditorOverView::load( const OPimTodo& todo ) |
131 | { | 131 | { |
132 | // Description | 132 | // Description |
133 | cmbDesc->insertItem( todo.summary(), 0 ); | 133 | cmbDesc->insertItem( todo.summary(), 0 ); |
134 | cmbDesc->setCurrentItem( 0 ); | 134 | cmbDesc->setCurrentItem( 0 ); |
135 | 135 | ||
136 | // Priority | 136 | // Priority |
137 | cmbPriority->setCurrentItem( todo.priority() - 1 ); | 137 | cmbPriority->setCurrentItem( todo.priority() - 1 ); |
138 | 138 | ||
139 | // Category | 139 | // Category |
140 | cmbCategory->setCategories( todo.categories(), "Todo List", tr( "Todo List" ) ); | 140 | cmbCategory->setCategories( todo.categories(), "Todo List", tr( "Todo List" ) ); |
141 | 141 | ||
142 | // Recurrence | 142 | // Recurrence |
143 | ckbRecurrence->setChecked( todo.hasRecurrence() ); | 143 | ckbRecurrence->setChecked( todo.hasRecurrence() ); |
144 | emit recurranceEnabled( todo.hasRecurrence() ); | 144 | emit recurranceEnabled( todo.hasRecurrence() ); |
145 | 145 | ||
146 | // Notes | 146 | // Notes |
147 | mleNotes->setText( todo.description() ); | 147 | mleNotes->setText( todo.description() ); |
148 | 148 | ||
149 | } | 149 | } |
150 | 150 | ||
151 | void TaskEditorOverView::save( OTodo &todo ) | 151 | void TaskEditorOverView::save( OPimTodo &todo ) |
152 | { | 152 | { |
153 | // Description | 153 | // Description |
154 | todo.setSummary( cmbDesc->currentText() ); | 154 | todo.setSummary( cmbDesc->currentText() ); |
155 | 155 | ||
156 | // Priority | 156 | // Priority |
157 | todo.setPriority( cmbPriority->currentItem() + 1 ); | 157 | todo.setPriority( cmbPriority->currentItem() + 1 ); |
158 | 158 | ||
159 | // Category | 159 | // Category |
160 | if ( cmbCategory->currentCategory() != -1 ) | 160 | if ( cmbCategory->currentCategory() != -1 ) |
161 | { | 161 | { |
162 | QArray<int> arr = cmbCategory->currentCategories(); | 162 | QArray<int> arr = cmbCategory->currentCategories(); |
163 | todo.setCategories( arr ); | 163 | todo.setCategories( arr ); |