- linearGrad.setColorAt(0, ScheduleWidget::sBusyBackgroundStart);
- linearGrad.setColorAt(1, ScheduleWidget::sBusyBackground);
+ // draw meeting with red if it is ongoing
+ if ( iMeetingsByDay[day][i].meeting->startsAt() <= QDateTime::currentDateTime() &&
+ iMeetingsByDay[day][i].meeting->endsAt() >= QDateTime::currentDateTime() )
+ {
+ linearGrad.setColorAt(0, ScheduleWidget::sCurrentBackgroundStart);
+ linearGrad.setColorAt(1, ScheduleWidget::sCurrentBackground);
+ }
+ else
+ {
+ linearGrad.setColorAt(0, ScheduleWidget::sBusyBackgroundStart);
+ linearGrad.setColorAt(1, ScheduleWidget::sBusyBackground);
+ }