[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise/kdepim/kresources/kolab/kcal
From: Sergio Luis Martins <iamsergio () gmail ! com>
Date: 2010-03-01 0:23:56
Message-ID: 1267403036.913398.24108.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1097356 by smartins:
Support for KCal::Event's that have duration but no end date.
kolab/issue3874
MERGE: trunk
M +5 -2 event.cpp
--- branches/kdepim/enterprise/kdepim/kresources/kolab/kcal/event.cpp #1097355:1097356
@@ -190,7 +190,9 @@
{
Incidence::setFields( event );
- if ( event->hasEndDate() ) {
+ // note: if hasEndDate() is false and hasDuration() is true
+ // dtEnd() returns start+duration
+ if ( event->hasEndDate() || event->hasDuration() ) {
if ( event->doesFloat() ) {
// This is a floating event. Don't timezone move this one
mFloatingStatus = AllDay;
@@ -199,8 +201,9 @@
mFloatingStatus = HasTime;
setEndDate( localToUTC( event->dtEnd() ) );
}
- } else
+ } else {
mHasEndDate = false;
+ }
setTransparency( event->transparency() );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic