Repaint in DiaryWindow

.. now we've optimised out the model resets the diary window
   (calendar chart) needs to explicitly repaint when a ride is
   selected because the model won't reset unless the ride selected
   is for a different month to the one currently shown.
This commit is contained in:
Mark Liversedge
2013-03-31 14:43:00 +01:00
parent 7af0c6a55b
commit dd168b4263
4 changed files with 14 additions and 9 deletions

View File

@@ -124,6 +124,7 @@ DiaryWindow::rideSelected()
when = when.addDays(Qt::Monday - when.dayOfWeek());
title->setText(QString("%1 %2").arg(QDate::longMonthName(month)).arg(year));
repaint();
next->show();
prev->show();
}