author | christophe <christophe> | 2004-07-30 09:50:15 (UTC) |
---|---|---|
committer | christophe <christophe> | 2004-07-30 09:50:15 (UTC) |
commit | b099a3dd18571fcbd5b1211f18ac111ec39f9ce8 (patch) (side-by-side diff) | |
tree | 2b63e0043a5d535690fa3017f0489ba41bc797af | |
parent | 52b1ae9281920cf5a40fe543112d8b00e7699ef6 (diff) | |
download | opie-b099a3dd18571fcbd5b1211f18ac111ec39f9ce8.zip opie-b099a3dd18571fcbd5b1211f18ac111ec39f9ce8.tar.gz opie-b099a3dd18571fcbd5b1211f18ac111ec39f9ce8.tar.bz2 |
ev is not required.
-rw-r--r-- | libopie2/opiepim/core/opimevent.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opiepim/core/opimevent.cpp b/libopie2/opiepim/core/opimevent.cpp index 739cb6f..c656c3d 100644 --- a/libopie2/opiepim/core/opimevent.cpp +++ b/libopie2/opiepim/core/opimevent.cpp @@ -622,52 +622,52 @@ void OPimEvent::fromMap( const QMap<int, QString>& map ) setLocation( map[ OPimEvent::FLocation ] ); if ( map[ OPimEvent::FType ] == "AllDay" ) setAllDay( true ); else setAllDay( false ); if ( !map[ OPimEvent::FTimeZone ].isEmpty() && ( map[ OPimEvent::FTimeZone ] != "None" ) ) { setTimeZone( map[ OPimEvent::FTimeZone ] ); } time_t start = ( time_t ) map[ OPimEvent::FStart ].toLong(); time_t end = ( time_t ) map[ OPimEvent::FEnd ].toLong(); /* AllDay is always in UTC */ if ( isAllDay() ) { OPimTimeZone utc = OPimTimeZone::utc(); setStartDateTime(utc.toDateTime( start ) ); setEndDateTime ( utc.toDateTime( end ) ); } else { /* to current date time */ - OPimTimeZone to_zone( ev.timeZone().isEmpty() ? OPimTimeZone::utc() : OPimTimeZone::current() ); + OPimTimeZone to_zone( timeZone().isEmpty() ? OPimTimeZone::utc() : OPimTimeZone::current() ); - ev.setStartDateTime(to_zone.toDateTime( start)); - ev.setEndDateTime (to_zone.toDateTime( end)); + setStartDateTime(to_zone.toDateTime( start)); + setEndDateTime (to_zone.toDateTime( end)); } int alarmTime = -1; if ( !map[ OPimEvent::FAlarm ].isEmpty() ) alarmTime = map[ OPimEvent::FAlarm ].toInt(); int sound = ( ( map[ OPimEvent::FSound ] == "loud" ) ? OPimAlarm::Loud : OPimAlarm::Silent ); if ( ( alarmTime != -1 ) ) { QDateTime dt = startDateTime().addSecs( -1 * alarmTime * 60 ); OPimAlarm al( sound , dt ); notifiers().add( al ); } if ( !map[ OPimEvent::FNote ].isEmpty() ) setNote( map[ OPimEvent::FNote ] ); if ( !map[ OPimEvent::FRecParent ].isEmpty() ) setParent( map[ OPimEvent::FRecParent ].toInt() ); if ( !map[ OPimEvent::FRecChildren ].isEmpty() ) { QStringList list = QStringList::split( ' ', map[ OPimEvent::FRecChildren ] ); |