-rw-r--r-- | libopie/pim/otodo.cpp | 2 | ||||
-rw-r--r-- | libopie2/opiepim/otodo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libopie/pim/otodo.cpp b/libopie/pim/otodo.cpp index 6dd4c0e..765d5a9 100644 --- a/libopie/pim/otodo.cpp +++ b/libopie/pim/otodo.cpp | |||
@@ -178,25 +178,25 @@ void OTodo::setPriority(int prio ) | |||
178 | void OTodo::setDueDate( QDate date ) | 178 | void OTodo::setDueDate( QDate date ) |
179 | { | 179 | { |
180 | changeOrModify(); | 180 | changeOrModify(); |
181 | data->date = date; | 181 | data->date = date; |
182 | } | 182 | } |
183 | void OTodo::setAlarmDateTime( const QDateTime& alarm ) | 183 | void OTodo::setAlarmDateTime( const QDateTime& alarm ) |
184 | { | 184 | { |
185 | changeOrModify(); | 185 | changeOrModify(); |
186 | data->alarmDateTime = alarm; | 186 | data->alarmDateTime = alarm; |
187 | } | 187 | } |
188 | bool OTodo::isOverdue( ) | 188 | bool OTodo::isOverdue( ) |
189 | { | 189 | { |
190 | if( data->hasDate ) | 190 | if( data->hasDate && !data->isCompleted) |
191 | return QDate::currentDate() > data->date; | 191 | return QDate::currentDate() > data->date; |
192 | return false; | 192 | return false; |
193 | } | 193 | } |
194 | void OTodo::setProgress(ushort progress ) | 194 | void OTodo::setProgress(ushort progress ) |
195 | { | 195 | { |
196 | changeOrModify(); | 196 | changeOrModify(); |
197 | data->prog = progress; | 197 | data->prog = progress; |
198 | } | 198 | } |
199 | QString OTodo::toShortText() const { | 199 | QString OTodo::toShortText() const { |
200 | return summary(); | 200 | return summary(); |
201 | } | 201 | } |
202 | /*! | 202 | /*! |
diff --git a/libopie2/opiepim/otodo.cpp b/libopie2/opiepim/otodo.cpp index 6dd4c0e..765d5a9 100644 --- a/libopie2/opiepim/otodo.cpp +++ b/libopie2/opiepim/otodo.cpp | |||
@@ -178,25 +178,25 @@ void OTodo::setPriority(int prio ) | |||
178 | void OTodo::setDueDate( QDate date ) | 178 | void OTodo::setDueDate( QDate date ) |
179 | { | 179 | { |
180 | changeOrModify(); | 180 | changeOrModify(); |
181 | data->date = date; | 181 | data->date = date; |
182 | } | 182 | } |
183 | void OTodo::setAlarmDateTime( const QDateTime& alarm ) | 183 | void OTodo::setAlarmDateTime( const QDateTime& alarm ) |
184 | { | 184 | { |
185 | changeOrModify(); | 185 | changeOrModify(); |
186 | data->alarmDateTime = alarm; | 186 | data->alarmDateTime = alarm; |
187 | } | 187 | } |
188 | bool OTodo::isOverdue( ) | 188 | bool OTodo::isOverdue( ) |
189 | { | 189 | { |
190 | if( data->hasDate ) | 190 | if( data->hasDate && !data->isCompleted) |
191 | return QDate::currentDate() > data->date; | 191 | return QDate::currentDate() > data->date; |
192 | return false; | 192 | return false; |
193 | } | 193 | } |
194 | void OTodo::setProgress(ushort progress ) | 194 | void OTodo::setProgress(ushort progress ) |
195 | { | 195 | { |
196 | changeOrModify(); | 196 | changeOrModify(); |
197 | data->prog = progress; | 197 | data->prog = progress; |
198 | } | 198 | } |
199 | QString OTodo::toShortText() const { | 199 | QString OTodo::toShortText() const { |
200 | return summary(); | 200 | return summary(); |
201 | } | 201 | } |
202 | /*! | 202 | /*! |