-rw-r--r-- | libkcal/icalformat.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libkcal/icalformat.cpp b/libkcal/icalformat.cpp index 5877406..6f3a799 100644 --- a/libkcal/icalformat.cpp +++ b/libkcal/icalformat.cpp | |||
@@ -51,6 +51,7 @@ extern "C" { | |||
51 | using namespace KCal; | 51 | using namespace KCal; |
52 | 52 | ||
53 | ICalFormat::ICalFormat( ) | 53 | ICalFormat::ICalFormat( bool pe ) |
54 | { | 54 | { |
55 | mProcessEvents = pe; | ||
55 | mImpl = new ICalFormatImpl( this ); | 56 | mImpl = new ICalFormatImpl( this ); |
56 | tzOffsetMin = 0; | 57 | tzOffsetMin = 0; |
@@ -190,6 +191,9 @@ QString ICalFormat::toString( Calendar *cal ) | |||
190 | icalcomponent_add_component(calendar,component); | 191 | icalcomponent_add_component(calendar,component); |
191 | //qDebug(" todos "); | 192 | //qDebug(" todos "); |
193 | if ( mProcessEvents ) { | ||
194 | //qDebug("mProcessEvents "); | ||
192 | qApp->processEvents(); | 195 | qApp->processEvents(); |
193 | } | 196 | } |
197 | } | ||
194 | // events | 198 | // events |
195 | QPtrList<Event> events = cal->rawEvents(); | 199 | QPtrList<Event> events = cal->rawEvents(); |
@@ -199,4 +203,5 @@ QString ICalFormat::toString( Calendar *cal ) | |||
199 | icalcomponent_add_component(calendar,component); | 203 | icalcomponent_add_component(calendar,component); |
200 | //qDebug("events "); | 204 | //qDebug("events "); |
205 | if ( mProcessEvents ) | ||
201 | qApp->processEvents(); | 206 | qApp->processEvents(); |
202 | } | 207 | } |
@@ -209,4 +214,5 @@ QString ICalFormat::toString( Calendar *cal ) | |||
209 | icalcomponent_add_component(calendar,component); | 214 | icalcomponent_add_component(calendar,component); |
210 | //qDebug("journals "); | 215 | //qDebug("journals "); |
216 | if ( mProcessEvents ) | ||
211 | qApp->processEvents(); | 217 | qApp->processEvents(); |
212 | } | 218 | } |
@@ -214,4 +220,5 @@ QString ICalFormat::toString( Calendar *cal ) | |||
214 | QString ret =""; | 220 | QString ret =""; |
215 | text = icalcomponent_as_ical_string( calendar ); | 221 | text = icalcomponent_as_ical_string( calendar ); |
222 | if ( mProcessEvents ) | ||
216 | qApp->processEvents(); | 223 | qApp->processEvents(); |
217 | 224 | ||