mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Athlete Bests on Summary
Configurable metrics to show top 10 bests for date range selected.
This commit is contained in:
@@ -319,6 +319,7 @@ MetricConfig::MetricConfig(QDir home, Zones *zones, Context *context) :
|
||||
home(home), zones(zones), context(context)
|
||||
{
|
||||
// the widgets
|
||||
bestsPage = new BestsMetricsPage(this);
|
||||
intervalsPage = new IntervalMetricsPage(this);
|
||||
summaryPage = new SummaryMetricsPage(this);
|
||||
|
||||
@@ -328,6 +329,7 @@ MetricConfig::MetricConfig(QDir home, Zones *zones, Context *context) :
|
||||
mainLayout->setContentsMargins(0,0,0,0);
|
||||
|
||||
QTabWidget *tabs = new QTabWidget(this);
|
||||
tabs->addTab(bestsPage, tr("Bests"));
|
||||
tabs->addTab(summaryPage, tr("Summary"));
|
||||
tabs->addTab(intervalsPage, tr("Intervals"));
|
||||
|
||||
@@ -336,6 +338,7 @@ MetricConfig::MetricConfig(QDir home, Zones *zones, Context *context) :
|
||||
|
||||
void MetricConfig::saveClicked()
|
||||
{
|
||||
bestsPage->saveClicked();
|
||||
summaryPage->saveClicked();
|
||||
intervalsPage->saveClicked();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user