summaryrefslogtreecommitdiff
path: root/library/backend/event.cpp
Unidiff
Diffstat (limited to 'library/backend/event.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/event.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/backend/event.cpp b/library/backend/event.cpp
index 8f3f780..7cac314 100644
--- a/library/backend/event.cpp
+++ b/library/backend/event.cpp
@@ -582,15 +582,17 @@ const QString &Event::location() const
582 \internal 582 \internal
583*/ 583*/
584Event::Type Event::type() const 584Event::Type Event::type() const
585{ 585{
586 return typ; 586 return typ;
587} 587}
588/*
588QDateTime Event::start() const { 589QDateTime Event::start() const {
589 return start( TRUE ); 590 return start( TRUE );
590} 591}
592*/
591/*! 593/*!
592 \internal 594 \internal
593*/ 595*/
594QDateTime Event::start( bool actual ) const 596QDateTime Event::start( bool actual ) const
595{ 597{
596 QDateTime dt = (startUTC > 0) ? TimeConversion::fromUTC( startUTC ) : QDateTime::currentDateTime(); 598 QDateTime dt = (startUTC > 0) ? TimeConversion::fromUTC( startUTC ) : QDateTime::currentDateTime();
@@ -599,16 +601,17 @@ QDateTime Event::start( bool actual ) const
599 QTime t = dt.time(); 601 QTime t = dt.time();
600 t.setHMS( 0, 0, 0 ); 602 t.setHMS( 0, 0, 0 );
601 dt.setTime( t ); 603 dt.setTime( t );
602 } 604 }
603 return dt; 605 return dt;
604} 606}
605 607/*
606QDateTime Event::end() const { 608QDateTime Event::end() const {
607 return end( TRUE ); 609 return end( TRUE );
608} 610}
611*/
609/*! 612/*!
610 \internal 613 \internal
611*/ 614*/
612QDateTime Event::end( bool actual ) const 615QDateTime Event::end( bool actual ) const
613{ 616{
614 QDateTime dt = (endUTC > 0) ? TimeConversion::fromUTC( endUTC ) : QDateTime::currentDateTime(); 617 QDateTime dt = (endUTC > 0) ? TimeConversion::fromUTC( endUTC ) : QDateTime::currentDateTime();