author | zecke <zecke> | 2002-04-27 18:10:51 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-27 18:10:51 (UTC) |
commit | 0c3303957aa56abb12c0cc4db1493eea5a995f28 (patch) (unidiff) | |
tree | a0b7ea7cc21e31a45deca6f0c0d0a2be70fe1b25 /libopie/todoevent.cpp | |
parent | 24cfee06815c460fdaa8e34f4b3a7cc9f4b008dd (diff) | |
download | opie-0c3303957aa56abb12c0cc4db1493eea5a995f28.zip opie-0c3303957aa56abb12c0cc4db1493eea5a995f28.tar.gz opie-0c3303957aa56abb12c0cc4db1493eea5a995f28.tar.bz2 |
Update TODO
Update todoevent.cpp I almost forgot about this
\n -> <br> inside the RichText
remove oconfig cause it was bogus. We can achieve the same
with Config(path, Config::File );
-rw-r--r-- | libopie/todoevent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/todoevent.cpp b/libopie/todoevent.cpp index 5537b77..b820150 100644 --- a/libopie/todoevent.cpp +++ b/libopie/todoevent.cpp | |||
@@ -122,25 +122,25 @@ bool ToDoEvent::isOverdue( ) | |||
122 | 122 | ||
123 | /*! | 123 | /*! |
124 | Returns a richt text string | 124 | Returns a richt text string |
125 | */ | 125 | */ |
126 | QString ToDoEvent::richText() const | 126 | QString ToDoEvent::richText() const |
127 | { | 127 | { |
128 | QString text; | 128 | QString text; |
129 | QStringList catlist; | 129 | QStringList catlist; |
130 | 130 | ||
131 | // Description of the todo | 131 | // Description of the todo |
132 | if ( !description().isEmpty() ){ | 132 | if ( !description().isEmpty() ){ |
133 | text += "<b>" + QObject::tr( "Description:" ) + "</b><br>"; | 133 | text += "<b>" + QObject::tr( "Description:" ) + "</b><br>"; |
134 | text += Qtopia::escapeString(description() ) + "<br>"; | 134 | text += Qtopia::escapeString(description() ).replace(QRegExp( "[\n]"), "<br>" ) + "<br>"; |
135 | } | 135 | } |
136 | text += "<b>" + QObject::tr( "Priority:") +" </b>" | 136 | text += "<b>" + QObject::tr( "Priority:") +" </b>" |
137 | + QString::number( priority() ) + "<br>"; | 137 | + QString::number( priority() ) + "<br>"; |
138 | if (hasDate() ){ | 138 | if (hasDate() ){ |
139 | text += "<b>" + QObject::tr( "Deadline:") + " </b>"; | 139 | text += "<b>" + QObject::tr( "Deadline:") + " </b>"; |
140 | text += date().toString(); | 140 | text += date().toString(); |
141 | text += "<br>"; | 141 | text += "<br>"; |
142 | } | 142 | } |
143 | 143 | ||
144 | // Open database of all categories and get the list of | 144 | // Open database of all categories and get the list of |
145 | // the categories this todoevent belongs to. | 145 | // the categories this todoevent belongs to. |
146 | // Then print them... | 146 | // Then print them... |