author | zautrix <zautrix> | 2005-03-21 14:42:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-21 14:42:01 (UTC) |
commit | 6e5a0c6cff04fff115e63b62537c5274dc7a5564 (patch) (side-by-side diff) | |
tree | 5d40aadc33768fa31036aefdf965462248358361 /libkcal | |
parent | 3bd97904e69bf586122ad82d279c37db0861eefb (diff) | |
download | kdepimpi-6e5a0c6cff04fff115e63b62537c5274dc7a5564.zip kdepimpi-6e5a0c6cff04fff115e63b62537c5274dc7a5564.tar.gz kdepimpi-6e5a0c6cff04fff115e63b62537c5274dc7a5564.tar.bz2 |
fix
-rw-r--r-- | libkcal/kincidenceformatter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libkcal/kincidenceformatter.cpp b/libkcal/kincidenceformatter.cpp index 57a9ede..e506a96 100644 --- a/libkcal/kincidenceformatter.cpp +++ b/libkcal/kincidenceformatter.cpp @@ -361,33 +361,33 @@ void KIncidenceFormatter::formatAttendees(Incidence *event) mText += "</a>\n"; } } if (a->status() != Attendee::NeedsAction ) mText +="[" + a->statusStr() + "] "; if (a->role() == Attendee::Chair ) mText +="(" + a->roleStr().left(1) + ".)"; } mText.append("</li></ul>"); } } void KIncidenceFormatter::formatReadOnly(Incidence *event) { if (event->isReadOnly()) { addTag("p","<em>(" + i18n("read-only") + ")</em>"); } } QString KIncidenceFormatter::deTag(QString text) { #if QT_VERSION >= 0x030000 text.replace( '<' , "<" ); text.replace( '>' , ">" ); #else - if ( text.find ('<') > 0 ) { + if ( text.find ('<') >= 0 ) { text.replace( QRegExp("<") , "<" ); } - if ( text.find ('>') > 0 ) { + if ( text.find ('>') >= 0 ) { text.replace( QRegExp(">") , ">" ); } #endif return text; } |