Diffstat (limited to 'core/pim/datebook/datebookday.cpp') (more/less context) (ignore 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 @@ -482,16 +482,16 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e, // Show end time. text += TimeString::timeString( ev.end(), whichClock, FALSE ); } text += "<br><br>" + strNote; setBackgroundMode( PaletteBase ); - QTime s = ev.start(); - QTime e = ev.end(); - int y = s.hour()*60+s.minute(); - int h = e.hour()*60+e.minute()-y; + QTime start = ev.start(); + QTime end = ev.end(); + int y = start.hour()*60+start.minute(); + int h = end.hour()*60+end.minute()-y; int rh = dateBook->dayView()->rowHeight(0); y = y*rh/60; h = h*rh/60; if ( h < 3 ) h = 3; geom.setY( y ); |