-rw-r--r-- | core/pim/todo/tableitems.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/todo/tableitems.cpp b/core/pim/todo/tableitems.cpp index a636de6..216b740 100644 --- a/core/pim/todo/tableitems.cpp +++ b/core/pim/todo/tableitems.cpp | |||
@@ -30,6 +30,8 @@ | |||
30 | #include "tableitems.h" | 30 | #include "tableitems.h" |
31 | #include <string.h> | 31 | #include <string.h> |
32 | 32 | ||
33 | #include <qobject.h> | ||
34 | |||
33 | using namespace Todo; | 35 | using namespace Todo; |
34 | 36 | ||
35 | CheckItem::CheckItem( QTable* t, | 37 | CheckItem::CheckItem( QTable* t, |
@@ -155,7 +157,7 @@ void DueTextItem::setToDoEvent( const OTodo& ev ) { | |||
155 | if( ev.hasDueDate() ){ | 157 | if( ev.hasDueDate() ){ |
156 | QDate today = QDate::currentDate(); | 158 | QDate today = QDate::currentDate(); |
157 | m_off = today.daysTo(ev.dueDate() ); | 159 | m_off = today.daysTo(ev.dueDate() ); |
158 | setText( tr( "%1 day(s)" ).arg( QString::number(m_off) ) ); | 160 | setText( QObject::tr( "%1 day(s)" ).arg( QString::number(m_off) ) ); |
159 | }else{ | 161 | }else{ |
160 | setText("n.d." ); | 162 | setText("n.d." ); |
161 | m_off = 0; | 163 | m_off = 0; |