summaryrefslogtreecommitdiff
authorzecke <zecke>2002-12-17 19:23:58 (UTC)
committer zecke <zecke>2002-12-17 19:23:58 (UTC)
commit59d5865053c8e722339a63d05c73eb923350620f (patch) (unidiff)
tree289a5874504d00957a4950d0074e0f484d1c59f5
parent7459ea6f560b01290086a0919fc5808291973b33 (diff)
downloadopie-59d5865053c8e722339a63d05c73eb923350620f.zip
opie-59d5865053c8e722339a63d05c73eb923350620f.tar.gz
opie-59d5865053c8e722339a63d05c73eb923350620f.tar.bz2
a QTableItem is no QObject so better use QObject::tr
besides that tableitems is dead... and I do drawing myself so better look at the tableview if you want to have that translated CCMAIL: cniehaus@kde.org
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableitems.cpp4
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
@@ -27,12 +27,14 @@
27*/ 27*/
28#include "tableview.h" 28#include "tableview.h"
29 29
30#include "tableitems.h" 30#include "tableitems.h"
31#include <string.h> 31#include <string.h>
32 32
33#include <qobject.h>
34
33using namespace Todo; 35using namespace Todo;
34 36
35CheckItem::CheckItem( QTable* t, 37CheckItem::CheckItem( QTable* t,
36 const QString& sortKey, 38 const QString& sortKey,
37 int uid, 39 int uid,
38 const QArray<int>& lis) 40 const QArray<int>& lis)
@@ -152,13 +154,13 @@ void DueTextItem::setToDoEvent( const OTodo& ev ) {
152 m_hasDate = ev.hasDueDate(); 154 m_hasDate = ev.hasDueDate();
153 m_completed = ev.isCompleted(); 155 m_completed = ev.isCompleted();
154 156
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;
162 } 164 }
163} 165}
164void DueTextItem::paint( QPainter* p, const QColorGroup &cg, 166void DueTextItem::paint( QPainter* p, const QColorGroup &cg,