Diffstat (limited to 'core/pim/datebook/datebookday.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookday.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index d5daab2..67a88e9 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp | |||
@@ -476,28 +476,28 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e, | |||
476 | 476 | ||
477 | text += "<br><b>" + tr("End") + "</b>: "; | 477 | text += "<br><b>" + tr("End") + "</b>: "; |
478 | if ( e.endDate() != ev.date() ) { | 478 | if ( e.endDate() != ev.date() ) { |
479 | // multi-day event. Show end date | 479 | // multi-day event. Show end date |
480 | text += TimeString::longDateString( e.endDate() ); | 480 | text += TimeString::longDateString( e.endDate() ); |
481 | } else { | 481 | } else { |
482 | // Show end time. | 482 | // Show end time. |
483 | text += TimeString::timeString( ev.end(), whichClock, FALSE ); | 483 | text += TimeString::timeString( ev.end(), whichClock, FALSE ); |
484 | } | 484 | } |
485 | text += "<br><br>" + strNote; | 485 | text += "<br><br>" + strNote; |
486 | setBackgroundMode( PaletteBase ); | 486 | setBackgroundMode( PaletteBase ); |
487 | 487 | ||
488 | QTime s = ev.start(); | 488 | QTime start = ev.start(); |
489 | QTime e = ev.end(); | 489 | QTime end = ev.end(); |
490 | int y = s.hour()*60+s.minute(); | 490 | int y = start.hour()*60+start.minute(); |
491 | int h = e.hour()*60+e.minute()-y; | 491 | int h = end.hour()*60+end.minute()-y; |
492 | int rh = dateBook->dayView()->rowHeight(0); | 492 | int rh = dateBook->dayView()->rowHeight(0); |
493 | y = y*rh/60; | 493 | y = y*rh/60; |
494 | h = h*rh/60; | 494 | h = h*rh/60; |
495 | if ( h < 3 ) | 495 | if ( h < 3 ) |
496 | h = 3; | 496 | h = 3; |
497 | geom.setY( y ); | 497 | geom.setY( y ); |
498 | geom.setHeight( h ); | 498 | geom.setHeight( h ); |
499 | } | 499 | } |
500 | 500 | ||
501 | DateBookDayWidget::~DateBookDayWidget() | 501 | DateBookDayWidget::~DateBookDayWidget() |
502 | { | 502 | { |
503 | } | 503 | } |