From 7999411de407eaaf57cae9e2d0cb3767c714d161 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 09 May 2002 15:39:38 +0000 Subject: Patch from Stefan Eilers to separate multiple categories by a , --- (limited to 'libopie/todoevent.cpp') 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 // Then print them... // I am not sure whether there is no better way doing this !? Categories catdb; + bool firstloop = true; catdb.load( categoryFileName() ); catlist = allCategories(); text += "" + QObject::tr( "Category:") + " "; for ( QStringList::Iterator it = catlist.begin(); it != catlist.end(); ++it ) { + if (!firstloop){ + text += ", "; + } + firstloop = false; text += catdb.label ("todo", (*it).toInt()); } text += "
"; -- cgit v0.9.0.2