3.1 Upgrade Processing Part 1 of 3

.. getting the upgrade code going, this just adds new functions
   for changing colors and themes and doesn't perform an upgrade

.. Part 2 will deal with W' and power.zones changes

.. Part 3 will deal with chart setup changes
This commit is contained in:
Mark Liversedge
2014-06-22 13:08:27 +01:00
parent 70fda6eefa
commit 22e136f96f
6 changed files with 182 additions and 3 deletions

View File

@@ -115,19 +115,19 @@ MainWindow::MainWindow(const QDir &home)
// bootstrap
Context *context = new Context(this);
GCColor *GCColorSet = new GCColor(context); // get/keep colorset, before athlete...
context->athlete = new Athlete(context, home);
setWindowIcon(QIcon(":images/gc.png"));
setWindowTitle(context->athlete->home.dirName());
setContentsMargins(0,0,0,0);
setAcceptDrops(true);
GCColor *GCColorSet = new GCColor(context); // get/keep colorset
GCColorSet->colorSet(); // shut up the compiler
#ifdef GC_HAVE_WFAPI
WFApi *w = WFApi::getInstance(); // ensure created on main thread
w->apiVersion();//shutup compiler
#endif
GCColorSet->colorSet(); // shut up the compiler
Library::initialise(context->athlete->home);
QNetworkProxyQuery npq(QUrl("http://www.google.com"));
QList<QNetworkProxy> listOfProxies = QNetworkProxyFactory::systemProxyForQuery(npq);