refs #512, changed dock widget to use settings

* allow to load from settings / save to settings
* removed outdated members / functions
* aligned naming of some functioss
This commit is contained in:
Klaus Basan
2016-06-04 01:07:03 +02:00
parent ddace24c35
commit 8b66f595d4
7 changed files with 207 additions and 150 deletions

View File

@@ -155,6 +155,7 @@ namespace BlackCore
CGlobalSetup CApplication::getGlobalSetup() const
{
if (this->m_shutdown) { return CGlobalSetup(); }
const CSetupReader *r = this->m_setupReader.data();
if (!r) { return CGlobalSetup(); }
return r->getSetup();
@@ -162,6 +163,7 @@ namespace BlackCore
CUpdateInfo CApplication::getUpdateInfo() const
{
if (this->m_shutdown) { return CUpdateInfo(); }
const CSetupReader *r = this->m_setupReader.data();
if (!r) { return CUpdateInfo(); }
return r->getUpdateInfo();
@@ -596,6 +598,7 @@ namespace BlackCore
{
if (this->supportsContexts())
{
// this will eventually also call saveToStore
m = this->getIContextApplication()->saveSettings();
}
else