author | alwin <alwin> | 2005-03-18 12:49:14 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-18 12:49:14 (UTC) |
commit | b7996a25adab32e6f2e4d278a9d9801ad66f90c7 (patch) (unidiff) | |
tree | f90bf3aa5cd274c467a8ff3e84566fdfa6a1a6c5 /core/pim/datebook/datebookday.cpp | |
parent | d7fdcc3dac4a1d8cbd823d17ea52d17cb67b16f8 (diff) | |
download | opie-b7996a25adab32e6f2e4d278a9d9801ad66f90c7.zip opie-b7996a25adab32e6f2e4d278a9d9801ad66f90c7.tar.gz opie-b7996a25adab32e6f2e4d278a9d9801ad66f90c7.tar.bz2 |
made plugins configureable, eg, if them will load or not (or switch on/off
at runtime)
events generated from plugins will not editable and so on (check for a
wrong Uid) so them are just text inside datebook.
Diffstat (limited to 'core/pim/datebook/datebookday.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookday.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index 00ddd05..26f0303 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp | |||
@@ -360,16 +360,17 @@ void DateBookDay::getEvents() | |||
360 | m_allDays->hide(); // just in case | 360 | m_allDays->hide(); // just in case |
361 | m_allDays->removeAllEvents(); | 361 | m_allDays->removeAllEvents(); |
362 | 362 | ||
363 | QStringList hdays = _holiday_db->holidaylist(currDate); | 363 | QStringList hdays = _holiday_db->holidaylist(currDate); |
364 | QStringList::Iterator sit; | 364 | QStringList::Iterator sit; |
365 | QObject* object = 0; | 365 | QObject* object = 0; |
366 | |||
367 | /* this way we make sure that holiday dummy events are always | ||
368 | on top of the widgetlist. */ | ||
366 | for (sit=hdays.begin();sit!=hdays.end();++sit) { | 369 | for (sit=hdays.begin();sit!=hdays.end();++sit) { |
367 | object = m_allDays->addHoliday(*sit); | 370 | m_allDays->addHoliday(*sit); |
368 | if (!object) continue; | ||
369 | /* not to do something with it */ | ||
370 | } | 371 | } |
371 | QValueList<EffectiveEvent> eventList = db->getEffectiveEventsNoHoliday( currDate, currDate ); | 372 | QValueList<EffectiveEvent> eventList = db->getEffectiveEventsNoHoliday( currDate, currDate ); |
372 | QValueListIterator<EffectiveEvent> it; | 373 | QValueListIterator<EffectiveEvent> it; |
373 | 374 | ||
374 | for ( it = eventList.begin(); it != eventList.end(); ++it ) { | 375 | for ( it = eventList.begin(); it != eventList.end(); ++it ) { |
375 | EffectiveEvent ev=*it; | 376 | EffectiveEvent ev=*it; |