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

@@ -241,8 +241,8 @@ void Leaf::validateFilter(DataFilter *df, Leaf *leaf)
DataFilter::DataFilter(QObject *parent, Context *context) : QObject(parent), context(context), treeRoot(NULL)
{
configUpdate();
connect(context, SIGNAL(configChanged()), this, SLOT(configUpdate()));
configChanged(CONFIG_FIELDS);
connect(context, SIGNAL(configChanged(qint32)), this, SLOT(configChanged(qint32)));
}
QStringList DataFilter::parseFilter(QString query, QStringList *list)
@@ -307,7 +307,7 @@ void DataFilter::clearFilter()
}
}
void DataFilter::configUpdate()
void DataFilter::configChanged(qint32)
{
lookupMap.clear();
lookupType.clear();