UI Nits: LTM add chart use a default date range

When adding a chart to the home view no date range is set.
This update ensures that the last selected date range is
used, so when a chart is selected/configured some data
will be shown.
This commit is contained in:
Mark Liversedge
2012-12-02 18:10:26 +00:00
parent 5193deaf61
commit cf8d3b4bd8
4 changed files with 11 additions and 1 deletions

View File

@@ -1128,6 +1128,7 @@ MainWindow::dateRangeChangedDiary(DateRange dr)
// when we have multiple sidebars that change date we need to connect
// them up individually.... i.e. LTM....
diaryWindow->setProperty("dateRange", QVariant::fromValue<DateRange>(dr));
_dr = dr;
}
void
@@ -1137,6 +1138,7 @@ MainWindow::dateRangeChangedLTM(DateRange dr)
// when we have multiple sidebars that change date we need to connect
// them up individually.... i.e. LTM....
homeWindow->setProperty("dateRange", QVariant::fromValue<DateRange>(dr));
_dr = dr;
}
void