summaryrefslogtreecommitdiff
path: root/libopie2/opiepim
Unidiff
Diffstat (limited to 'libopie2/opiepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/core/opimrecord.cpp4
-rw-r--r--libopie2/opiepim/core/opimrecord.h2
-rw-r--r--libopie2/opiepim/ocontact.cpp4
-rw-r--r--libopie2/opiepim/otodo.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/libopie2/opiepim/core/opimrecord.cpp b/libopie2/opiepim/core/opimrecord.cpp
index ac0f4a9..d45417a 100644
--- a/libopie2/opiepim/core/opimrecord.cpp
+++ b/libopie2/opiepim/core/opimrecord.cpp
@@ -32,3 +32,3 @@ OPimRecord &OPimRecord::operator=( const OPimRecord& rec) {
32 */ 32 */
33QStringList OPimRecord::categoryNames()const { 33QStringList OPimRecord::categoryNames( const QString& appname ) const {
34 QStringList list; 34 QStringList list;
@@ -39,3 +39,3 @@ QStringList OPimRecord::categoryNames()const {
39 for (uint i = 0; i < cats.count(); i++ ) { 39 for (uint i = 0; i < cats.count(); i++ ) {
40 list << catDB.label("Todo List", cats[i] ); 40 list << catDB.label( appname, cats[i] );
41 } 41 }
diff --git a/libopie2/opiepim/core/opimrecord.h b/libopie2/opiepim/core/opimrecord.h
index 665530f..c7f9460 100644
--- a/libopie2/opiepim/core/opimrecord.h
+++ b/libopie2/opiepim/core/opimrecord.h
@@ -40,3 +40,3 @@ public:
40 */ 40 */
41 QStringList categoryNames()const; 41 QStringList categoryNames( const QString& appname )const;
42 42
diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp
index 178559b..9cccfc8 100644
--- a/libopie2/opiepim/ocontact.cpp
+++ b/libopie2/opiepim/ocontact.cpp
@@ -629,5 +629,5 @@ QString OContact::toRichText() const
629 629
630 if ( categoryNames().count() ){ 630 if ( categoryNames("Contacts").count() ){
631 text += "<b>" + QObject::tr( "Category:") + "</b> "; 631 text += "<b>" + QObject::tr( "Category:") + "</b> ";
632 text += categoryNames().join(", "); 632 text += categoryNames("Contacts").join(", ");
633 text += "<br>"; 633 text += "<br>";
diff --git a/libopie2/opiepim/otodo.cpp b/libopie2/opiepim/otodo.cpp
index cde2b3d..b4d4aa9 100644
--- a/libopie2/opiepim/otodo.cpp
+++ b/libopie2/opiepim/otodo.cpp
@@ -257,3 +257,3 @@ QString OTodo::toRichText() const
257 text += "<b>" + QObject::tr( "Category:") + "</b> "; 257 text += "<b>" + QObject::tr( "Category:") + "</b> ";
258 text += categoryNames().join(", "); 258 text += categoryNames( "Todo List" ).join(", ");
259 text += "<br>"; 259 text += "<br>";