From a73774e8ab1d14c76f17c854c6b6cdf801abfe82 Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 10 Sep 2002 13:11:25 +0000 Subject: Fix inline for Event::start --- (limited to 'library/backend') diff --git a/library/backend/event.cpp b/library/backend/event.cpp index 7110717..8f3f780 100644 --- a/library/backend/event.cpp +++ b/library/backend/event.cpp @@ -424,7 +424,7 @@ QMap Event::toMap() const if ( !description().isEmpty() ) m.insert( DatebookDescription, description() ); - if ( !location().isEmpty() ) + if ( !location().isEmpty() ) m.insert ( Location, location() ); if ( categories().count() ) m.insert ( DatebookCategory, idsToString( categories() ) ); @@ -585,7 +585,9 @@ Event::Type Event::type() const { return typ; } - +QDateTime Event::start() const { + return start( TRUE ); +} /*! \internal */ @@ -601,6 +603,9 @@ QDateTime Event::start( bool actual ) const return dt; } +QDateTime Event::end() const { + return end( TRUE ); +} /*! \internal */ diff --git a/library/backend/event.h b/library/backend/event.h index 7fe41a5..2b275a4 100644 --- a/library/backend/event.h +++ b/library/backend/event.h @@ -268,9 +268,9 @@ inline void Event::setAllDay(bool enable) { if (enable) setType(AllDay); - else + else setType(Normal); -}; +}; inline bool Event::isAllDay() const { @@ -341,7 +341,7 @@ inline void Event::setRepeatOnWeekDay(int day, bool enable) if ( repeatOnWeekDay( day ) != enable ) pattern.days ^= 1 << (day - 1); } - +/* inline QDateTime Event::start( ) const { return start(FALSE); @@ -351,7 +351,7 @@ inline QDateTime Event::end( ) const { return end(FALSE); } - +*/ #ifdef PALMTOPCENTER class QPC_EXPORT EffectiveEventSizeSorter : public QSorter { -- cgit v0.9.0.2