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 @@ -464,52 +464,52 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e, text = "<b>" + strDesc + "</b><br>" + "<i>" + strCat + "</i>" + "<br><b>" + tr("Start") + "</b>: "; if ( e.startDate() != ev.date() ) { // multi-day event. Show start date text += TimeString::longDateString( e.startDate() ); } else { // Show start time. text += TimeString::timeString( ev.start(), whichClock, FALSE ); } text += "<br><b>" + tr("End") + "</b>: "; if ( e.endDate() != ev.date() ) { // multi-day event. Show end date text += TimeString::longDateString( e.endDate() ); } else { // 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 ); geom.setHeight( h ); } DateBookDayWidget::~DateBookDayWidget() { } void DateBookDayWidget::paintEvent( QPaintEvent *e ) { QPainter p( this ); p.setPen( QColor(100, 100, 100) ); p.setBrush( QColor( 255, 240, 230 ) ); // based on priority? p.drawRect(rect()); int y = 0; int d = 0; if ( ev.event().hasAlarm() ) { |