summaryrefslogtreecommitdiff
path: root/core/pim/todo/tableitems.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/tableitems.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/tableitems.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/todo/tableitems.cpp b/core/pim/todo/tableitems.cpp
index 86fe07d..a636de6 100644
--- a/core/pim/todo/tableitems.cpp
+++ b/core/pim/todo/tableitems.cpp
@@ -146,25 +146,25 @@ QString DueTextItem::key() const {
}
void DueTextItem::setCompleted( bool comp ) {
m_completed = comp;
table()->updateCell( row(), col() );
}
void DueTextItem::setToDoEvent( const OTodo& ev ) {
m_hasDate = ev.hasDueDate();
m_completed = ev.isCompleted();
if( ev.hasDueDate() ){
QDate today = QDate::currentDate();
m_off = today.daysTo(ev.dueDate() );
- setText( QString::number(m_off) + " day(s) " );
+ setText( tr( "%1 day(s)" ).arg( QString::number(m_off) ) );
}else{
setText("n.d." );
m_off = 0;
}
}
void DueTextItem::paint( QPainter* p, const QColorGroup &cg,
const QRect& cr, bool selected ) {
QColorGroup cg2(cg);
QColor text = cg.text();
if( m_hasDate && !m_completed ){
if( m_off < 0 ){