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 784275256b
commit 1769818d2b
4 changed files with 14 additions and 9 deletions

Binary file not shown.

View File

@@ -596,7 +596,11 @@ Simply lists the current windows you have open and allows you to select the wind
the current window focus.
@page
@section The Toolbar and Scope bar
what the buttons do
@vskip 12pt
@center @image{"image/2-toolbar",350pt}
@center @emph{Figure 7: Tool Bar and Scope Bar}
@vskip 6pt
@section Views & Sidebar
scopebar, sidebar, tab/tiled, add chart menu
@@ -667,7 +671,7 @@ the manual activity dialog and refer to details screen for more "indepth" (need
@c ********************************************************************************
@c ANALYSIS CHARTS
@c ********************************************************************************
@chapter Analysis View Charts
@chapter ANALYSIS VIEW CHARTS
@node ANALYSIS CHARTS
i Activity Summary
ii Details
@@ -695,7 +699,7 @@ the manual activity dialog and refer to details screen for more "indepth" (need
@c ********************************************************************************
@c HOME CHARTS
@c ********************************************************************************
@chapter Performance Tracking Charts
@chapter PERFORMANCE TRACKING CHARTS
@node HOME CHARTS
i Long Term Metrics
- indepth howto incl. setting up a PMC++
@@ -740,7 +744,7 @@ the manual activity dialog and refer to details screen for more "indepth" (need
@c ********************************************************************************
@c TRAIN CHARTS
@c ********************************************************************************
@chapter Training View Charts
@chapter TRAINING VIEW CHARTS
@node TRAIN CHARTS
i Telemetry
ii Workout
@@ -788,11 +792,11 @@ Intro and explain opening the Preferences Pane
@c ********************************************************************************
@c Appendices
@c ********************************************************************************
@unnumbered Appendix A Supported Devices, Formats & Services
@unnumbered B Metrics Reference
@unnumbered B Data Filtering Reference
@unnumbered C Glossary & Resources
@unnumbered D OS Specifics (Directories, Drivers and Permissions)
@unnumbered A - Supported Devices, Formats & Services
@unnumbered B - Metrics Reference
@unnumbered B - Data Filtering Reference
@unnumbered C - Glossary & Resources
@unnumbered D - OS Specifics (Directories, Drivers and Permissions)
@unnumbered Index
@printindex cp

Binary file not shown.

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();
}