mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
About Dialog Config Tab
.. should only be shown on developer builds. When building releases or release candidates and GC_VERSION is being defined then don't add the config tab -- it is too `geeky' for the average end user and not at all useful for debugging.
This commit is contained in:
@@ -23,11 +23,6 @@
|
||||
#include "MetricAggregator.h"
|
||||
#include <QtSql>
|
||||
|
||||
#ifndef GC_VERSION
|
||||
#define GC_VERSION "(developer build)"
|
||||
#endif
|
||||
|
||||
|
||||
#define GCC_VERSION QString("%1.%2.%3").arg(__GNUC__).arg(__GNUC_MINOR__).arg(__GNUC_PATCHLEVEL__)
|
||||
|
||||
#ifdef GC_HAVE_QWTPLOT3D
|
||||
@@ -61,14 +56,17 @@ AboutDialog::AboutDialog(MainWindow *mainWindow, QDir home) : mainWindow(mainWin
|
||||
aboutPage = new AboutPage(mainWindow, home);
|
||||
versionPage = new VersionPage(mainWindow, home);
|
||||
contributorsPage = new ContributorsPage(mainWindow, home);
|
||||
#ifndef GC_VERSION
|
||||
configPage = new ConfigPage(mainWindow, home);
|
||||
#endif
|
||||
|
||||
tabWidget = new QTabWidget;
|
||||
tabWidget->setContentsMargins(0,0,0,0);
|
||||
|
||||
tabWidget->addTab(aboutPage, tr("About"));
|
||||
tabWidget->addTab(versionPage, tr("Version"));
|
||||
#ifndef GC_VERSION
|
||||
tabWidget->addTab(configPage, tr("Config"));
|
||||
#endif
|
||||
tabWidget->addTab(contributorsPage, tr("Contributors"));
|
||||
|
||||
mainLayout = new QVBoxLayout;
|
||||
@@ -245,7 +243,11 @@ VersionPage::VersionPage(MainWindow *main, QDir home) : main(main), home(home)
|
||||
.arg(__DATE__)
|
||||
.arg(__TIME__)
|
||||
.arg(GcUpgrade::version())
|
||||
#ifdef GC_VERSION
|
||||
.arg(GC_VERSION)
|
||||
#else
|
||||
.arg("(developer build)")
|
||||
#endif
|
||||
.arg(schemaVersion)
|
||||
.arg(os);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user