ConfigChanged Part 1 of 3

.. introduce concept of configChanged(what) to
   pass details of what config has been changed

.. fixed zones changes to re-read after write
   to correct the save twice to get changes to
   zones bug.

.. next parts need to spot changes (part 2) and
   then action appropriately (part 3)
This commit is contained in:
Mark Liversedge
2014-12-29 12:37:17 +00:00
parent e7399ba4f2
commit 5692d362d0
113 changed files with 388 additions and 332 deletions

View File

@@ -74,10 +74,10 @@ GoogleMapControl::GoogleMapControl(Context *context) : GcChartWindow(context), c
connect(context, SIGNAL(intervalsChanged()), webBridge, SLOT(intervalsChanged()));
connect(context, SIGNAL(intervalSelected()), webBridge, SLOT(intervalsChanged()));
connect(context, SIGNAL(intervalZoom(IntervalItem*)), this, SLOT(zoomInterval(IntervalItem*)));
connect(context, SIGNAL(configChanged()), this, SLOT(configChanged()));
connect(context, SIGNAL(configChanged(qint32)), this, SLOT(configChanged(qint32)));
first = true;
configChanged();
configChanged(CONFIG_APPEARANCE);
}
GoogleMapControl::~GoogleMapControl()
@@ -86,7 +86,7 @@ GoogleMapControl::~GoogleMapControl()
}
void
GoogleMapControl::configChanged()
GoogleMapControl::configChanged(qint32)
{
setProperty("color", GColor(CPLOTBACKGROUND));
#ifndef Q_OS_MAC