summaryrefslogtreecommitdiff
authorzecke <zecke>2002-05-09 15:39:38 (UTC)
committer zecke <zecke>2002-05-09 15:39:38 (UTC)
commit7999411de407eaaf57cae9e2d0cb3767c714d161 (patch) (unidiff)
treea29d0744a5aa698c8eb329721d1df651096eeb10
parent543122f38cc6e2b711d4afa321f7fed469b76621 (diff)
downloadopie-7999411de407eaaf57cae9e2d0cb3767c714d161.zip
opie-7999411de407eaaf57cae9e2d0cb3767c714d161.tar.gz
opie-7999411de407eaaf57cae9e2d0cb3767c714d161.tar.bz2
Patch from Stefan Eilers to separate multiple categories by a ,
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie/todoevent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libopie/todoevent.cpp b/libopie/todoevent.cpp
index b820150..aa348a2 100644
--- a/libopie/todoevent.cpp
+++ b/libopie/todoevent.cpp
@@ -146,11 +146,16 @@ QString ToDoEvent::richText() const
146 // Then print them... 146 // Then print them...
147 // I am not sure whether there is no better way doing this !? 147 // I am not sure whether there is no better way doing this !?
148 Categories catdb; 148 Categories catdb;
149 bool firstloop = true;
149 catdb.load( categoryFileName() ); 150 catdb.load( categoryFileName() );
150 catlist = allCategories(); 151 catlist = allCategories();
151 152
152 text += "<b>" + QObject::tr( "Category:") + "</b> "; 153 text += "<b>" + QObject::tr( "Category:") + "</b> ";
153 for ( QStringList::Iterator it = catlist.begin(); it != catlist.end(); ++it ) { 154 for ( QStringList::Iterator it = catlist.begin(); it != catlist.end(); ++it ) {
155 if (!firstloop){
156 text += ", ";
157 }
158 firstloop = false;
154 text += catdb.label ("todo", (*it).toInt()); 159 text += catdb.label ("todo", (*it).toInt());
155 } 160 }
156 text += "<br>"; 161 text += "<br>";