Diffstat (limited to 'core/pim/datebook/datebookday.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookday.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index ca63dc5..dfe39e5 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp | |||
@@ -24,2 +24,3 @@ | |||
24 | 24 | ||
25 | #include <opie2/oholidayplugin.h> | ||
25 | #include <qpe/resource.h> | 26 | #include <qpe/resource.h> |
@@ -228,3 +229,3 @@ void DateBookDayViewQuickLineEdit::focusOutEvent ( QFocusEvent* /* e */) | |||
228 | 229 | ||
229 | DateBookDay::DateBookDay( bool ampm, bool startOnMonday, DateBookDB *newDb, QWidget *parent, const char *name ) | 230 | DateBookDay::DateBookDay( bool ampm, bool startOnMonday, DateBookDB *newDb, DateBookHoliday*newHdb, QWidget *parent, const char *name ) |
230 | : QVBox( parent, name ), currDate( QDate::currentDate() ), db( newDb ), startTime( 0 ) | 231 | : QVBox( parent, name ), currDate( QDate::currentDate() ), db( newDb ), startTime( 0 ) |
@@ -232,2 +233,3 @@ DateBookDay::DateBookDay( bool ampm, bool startOnMonday, DateBookDB *newDb, QWid | |||
232 | widgetList.setAutoDelete( true ); | 233 | widgetList.setAutoDelete( true ); |
234 | _holiday_db = newHdb; | ||
233 | header = new DateBookDayHeader( startOnMonday, this, "day header" ); | 235 | header = new DateBookDayHeader( startOnMonday, this, "day header" ); |
@@ -359,5 +361,13 @@ void DateBookDay::getEvents() | |||
359 | 361 | ||
362 | QStringList hdays = _holiday_db->holidaylist(currDate); | ||
363 | QStringList::Iterator sit; | ||
364 | QObject* object = 0; | ||
365 | for (sit=hdays.begin();sit!=hdays.end();++sit) { | ||
366 | object = m_allDays->addHoliday(*sit); | ||
367 | if (!object) continue; | ||
368 | /* not to do something with it */ | ||
369 | } | ||
360 | QValueList<EffectiveEvent> eventList = db->getEffectiveEvents( currDate, currDate ); | 370 | QValueList<EffectiveEvent> eventList = db->getEffectiveEvents( currDate, currDate ); |
361 | QValueListIterator<EffectiveEvent> it; | 371 | QValueListIterator<EffectiveEvent> it; |
362 | QObject* object = 0; | 372 | |
363 | for ( it = eventList.begin(); it != eventList.end(); ++it ) { | 373 | for ( it = eventList.begin(); it != eventList.end(); ++it ) { |