mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Add metric count to about box
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <QWebFrame>
|
||||
|
||||
#include "DBAccess.h"
|
||||
#include "RideMetric.h"
|
||||
#include "MetricAggregator.h"
|
||||
#include <QtSql>
|
||||
#include <qwt_plot_curve.h>
|
||||
@@ -220,11 +221,13 @@ QString GcCrashDialog::versionHTML()
|
||||
QString wfapi = QString("none");
|
||||
#endif
|
||||
|
||||
const RideMetricFactory &factory = RideMetricFactory::instance();
|
||||
QString gc_version = tr(
|
||||
"<p>Build date: %1 %2"
|
||||
"<br>Build id: %3"
|
||||
"<br>Version: %4"
|
||||
"<br>DB Schema: %5"
|
||||
"<br>Metrics: %7"
|
||||
"<br>OS: %6"
|
||||
"<br>")
|
||||
.arg(__DATE__)
|
||||
@@ -236,7 +239,8 @@ QString GcCrashDialog::versionHTML()
|
||||
.arg("(developer build)")
|
||||
#endif
|
||||
.arg(schemaVersion)
|
||||
.arg(os);
|
||||
.arg(os)
|
||||
.arg(factory.metricCount());
|
||||
|
||||
QString lib_version = tr(
|
||||
"<table>"
|
||||
|
||||
@@ -156,7 +156,6 @@ MainWindow::MainWindow(const QDir &home)
|
||||
/*----------------------------------------------------------------------
|
||||
* GUI setup
|
||||
*--------------------------------------------------------------------*/
|
||||
|
||||
// need to restore geometry before setUnifiedToolBar.. on Mac
|
||||
QRect screenSize = desktop->availableGeometry();
|
||||
appsettings->setValue(GC_SETTINGS_LAST, context->athlete->home.dirName());
|
||||
|
||||
Reference in New Issue
Block a user