summaryrefslogtreecommitdiff
authorzecke <zecke>2002-09-10 13:11:25 (UTC)
committer zecke <zecke>2002-09-10 13:11:25 (UTC)
commita73774e8ab1d14c76f17c854c6b6cdf801abfe82 (patch) (side-by-side diff)
tree27b0ddb41a40133bfaad34781ce69890615e4acc
parent8064c0e86eed8a48c2c7745195bf991b1d83f504 (diff)
downloadopie-a73774e8ab1d14c76f17c854c6b6cdf801abfe82.zip
opie-a73774e8ab1d14c76f17c854c6b6cdf801abfe82.tar.gz
opie-a73774e8ab1d14c76f17c854c6b6cdf801abfe82.tar.bz2
Fix inline for Event::start
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/event.cpp9
-rw-r--r--library/backend/event.h8
2 files changed, 11 insertions, 6 deletions
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
@@ -423,9 +423,9 @@ QMap<int, QString> Event::toMap() const
QMap<int, QString> m;
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() ) );
if ( !timeZone().isEmpty() )
@@ -584,9 +584,11 @@ const QString &Event::location() const
Event::Type Event::type() const
{
return typ;
}
-
+QDateTime Event::start() const {
+ return start( TRUE );
+}
/*!
\internal
*/
QDateTime Event::start( bool actual ) const
@@ -600,8 +602,11 @@ QDateTime Event::start( bool actual ) const
}
return dt;
}
+QDateTime Event::end() const {
+ return end( TRUE );
+}
/*!
\internal
*/
QDateTime Event::end( bool actual ) const
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
@@ -267,11 +267,11 @@ inline int Event::alarmDelay() const
inline void Event::setAllDay(bool enable)
{
if (enable)
setType(AllDay);
- else
+ else
setType(Normal);
-};
+};
inline bool Event::isAllDay() const
{
return type() == AllDay;
@@ -340,9 +340,9 @@ 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);
}
@@ -350,9 +350,9 @@ inline QDateTime Event::start( ) const
inline QDateTime Event::end( ) const
{
return end(FALSE);
}
-
+*/
#ifdef PALMTOPCENTER
class QPC_EXPORT EffectiveEventSizeSorter : public QSorter<EffectiveEvent>
{
public: