author | zautrix <zautrix> | 2005-02-04 13:30:05 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-04 13:30:05 (UTC) |
commit | 76e6ad6cc6a3be8df896a3e7cf8375234b3212a9 (patch) (unidiff) | |
tree | e5dc828bed35195ae3c24bc487986efc7e0d6011 | |
parent | 83256090c493dab56f1afba4829e864598bf70d2 (diff) | |
download | kdepimpi-76e6ad6cc6a3be8df896a3e7cf8375234b3212a9.zip kdepimpi-76e6ad6cc6a3be8df896a3e7cf8375234b3212a9.tar.gz kdepimpi-76e6ad6cc6a3be8df896a3e7cf8375234b3212a9.tar.bz2 |
compile fix
-rw-r--r-- | korganizer/koeventviewer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index bf41edb..2faf18f 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp | |||
@@ -178,49 +178,51 @@ void KOEventViewer::setSource(const QString& n) | |||
178 | return; | 178 | return; |
179 | } | 179 | } |
180 | } else { | 180 | } else { |
181 | //QTextBrowser::setSource(n); | 181 | //QTextBrowser::setSource(n); |
182 | } | 182 | } |
183 | #endif | 183 | #endif |
184 | } | 184 | } |
185 | void KOEventViewer::mailToAttendees( bool all ) | 185 | void KOEventViewer::mailToAttendees( bool all ) |
186 | { | 186 | { |
187 | QPtrList<Attendee> attendees = mCurrentIncidence->attendees(); | 187 | QPtrList<Attendee> attendees = mCurrentIncidence->attendees(); |
188 | if (attendees.count() == 0) return; | 188 | if (attendees.count() == 0) return; |
189 | QStringList nameList; | 189 | QStringList nameList; |
190 | QStringList emailList; | 190 | QStringList emailList; |
191 | QStringList uidList; | 191 | QStringList uidList; |
192 | Attendee* a; | 192 | Attendee* a; |
193 | for(a=attendees.first();a;a=attendees.next()) { | 193 | for(a=attendees.first();a;a=attendees.next()) { |
194 | if ( !all && !a->RSVP() ) continue; | 194 | if ( !all && !a->RSVP() ) continue; |
195 | if (!a->email().isEmpty()) { | 195 | if (!a->email().isEmpty()) { |
196 | nameList.append (a->name() ); | 196 | nameList.append (a->name() ); |
197 | emailList.append (a->email() ); | 197 | emailList.append (a->email() ); |
198 | uidList.append (a->uid() ); | 198 | uidList.append (a->uid() ); |
199 | } | 199 | } |
200 | } | 200 | } |
201 | QString uid = "ComposeMailUIpick2"+mMailSubject; | 201 | QString uid = "ComposeMailUIpick2"+mMailSubject; |
202 | #ifndef DESKTOP_VERSION | ||
202 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI("QPE/Application/ompi", uid, nameList, emailList, uidList); | 203 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI("QPE/Application/ompi", uid, nameList, emailList, uidList); |
204 | #endif | ||
203 | 205 | ||
204 | } | 206 | } |
205 | void KOEventViewer::addTag(const QString & tag,const QString & text) | 207 | void KOEventViewer::addTag(const QString & tag,const QString & text) |
206 | { | 208 | { |
207 | int number=text.contains("\n"); | 209 | int number=text.contains("\n"); |
208 | QString str = "<" + tag + ">"; | 210 | QString str = "<" + tag + ">"; |
209 | QString tmpText=text; | 211 | QString tmpText=text; |
210 | QString tmpStr=str; | 212 | QString tmpStr=str; |
211 | if(number !=-1) | 213 | if(number !=-1) |
212 | { | 214 | { |
213 | if (number > 0) { | 215 | if (number > 0) { |
214 | int pos=0; | 216 | int pos=0; |
215 | QString tmp; | 217 | QString tmp; |
216 | for(int i=0;i<=number;i++) { | 218 | for(int i=0;i<=number;i++) { |
217 | pos=tmpText.find("\n"); | 219 | pos=tmpText.find("\n"); |
218 | tmp=tmpText.left(pos); | 220 | tmp=tmpText.left(pos); |
219 | tmpText=tmpText.right(tmpText.length()-pos-1); | 221 | tmpText=tmpText.right(tmpText.length()-pos-1); |
220 | tmpStr+=tmp+"<br>"; | 222 | tmpStr+=tmp+"<br>"; |
221 | } | 223 | } |
222 | } | 224 | } |
223 | else tmpStr += tmpText; | 225 | else tmpStr += tmpText; |
224 | tmpStr+="</" + tag + ">"; | 226 | tmpStr+="</" + tag + ">"; |
225 | mText.append(tmpStr); | 227 | mText.append(tmpStr); |
226 | } | 228 | } |