author | eilers <eilers> | 2003-02-18 11:55:59 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-02-18 11:55:59 (UTC) |
commit | 00e9f7731c19604a8e79df9e935ec833fc1937f8 (patch) (unidiff) | |
tree | 7bf9b8230832e2138af7e73740b28eafc4c33101 /libopie2/opiepim/ocontact.cpp | |
parent | 065f26b161f6df269cfbf9c75751c09453350995 (diff) | |
download | opie-00e9f7731c19604a8e79df9e935ec833fc1937f8.zip opie-00e9f7731c19604a8e79df9e935ec833fc1937f8.tar.gz opie-00e9f7731c19604a8e79df9e935ec833fc1937f8.tar.bz2 |
Fixing categoryNames in opimrecord which was just checking for Todo List
Now we get the categories in addressbook, too !
Diffstat (limited to 'libopie2/opiepim/ocontact.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/ocontact.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
@@ -618,27 +618,27 @@ QString OContact::toRichText() const | |||
618 | + Qtopia::escapeString(str) + "<br>"; | 618 | + Qtopia::escapeString(str) + "<br>"; |
619 | } | 619 | } |
620 | str = children(); | 620 | str = children(); |
621 | if ( !str.isEmpty() ) | 621 | if ( !str.isEmpty() ) |
622 | text += "<b>" + QObject::tr("Children: ") + "</b>" | 622 | text += "<b>" + QObject::tr("Children: ") + "</b>" |
623 | + Qtopia::escapeString(str) + "<br>"; | 623 | + Qtopia::escapeString(str) + "<br>"; |
624 | 624 | ||
625 | str = nickname(); | 625 | str = nickname(); |
626 | if ( !str.isEmpty() ) | 626 | if ( !str.isEmpty() ) |
627 | text += "<b>" + QObject::tr("Nickname: ") + "</b>" | 627 | text += "<b>" + QObject::tr("Nickname: ") + "</b>" |
628 | + Qtopia::escapeString(str) + "<br>"; | 628 | + Qtopia::escapeString(str) + "<br>"; |
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>"; |
634 | } | 634 | } |
635 | 635 | ||
636 | // notes last | 636 | // notes last |
637 | if ( !(value = notes()).isEmpty() ) { | 637 | if ( !(value = notes()).isEmpty() ) { |
638 | text += "<br><hr><b>" + QObject::tr( "Notes:") + "</b> "; | 638 | text += "<br><hr><b>" + QObject::tr( "Notes:") + "</b> "; |
639 | QRegExp reg("\n"); | 639 | QRegExp reg("\n"); |
640 | 640 | ||
641 | //QString tmp = Qtopia::escapeString(value); | 641 | //QString tmp = Qtopia::escapeString(value); |
642 | QString tmp = QStyleSheet::convertFromPlainText(value); | 642 | QString tmp = QStyleSheet::convertFromPlainText(value); |
643 | //tmp.replace( reg, "<br>" ); | 643 | //tmp.replace( reg, "<br>" ); |
644 | text += "<br>" + tmp + "<br>"; | 644 | text += "<br>" + tmp + "<br>"; |