[apps] Put the method preference in container instead of in every app

Change-Id: Ib390952a6559aa847c99e3ca74c4f6995a07e909
This commit is contained in:
Émilie Feral
2017-01-31 16:15:04 +01:00
parent ab65e832ea
commit 47cec5e72b
10 changed files with 27 additions and 31 deletions

View File

@@ -8,9 +8,9 @@ AppsContainer::AppsContainer() :
Container(),
m_window(AppsWindow()),
m_homeApp(this),
m_graphApp(this, &m_globalContext, &m_preferences),
m_graphApp(this, &m_globalContext),
m_probabilityApp(this),
m_calculationApp(this, &m_globalContext, &m_preferences),
m_calculationApp(this, &m_globalContext),
m_regressionApp(this),
m_settingsApp(this, &m_preferences),
m_statisticsApp(this),
@@ -46,6 +46,10 @@ Context * AppsContainer::globalContext() {
return &m_globalContext;
}
Preferences * AppsContainer::preferences() {
return &m_preferences;
}
ToolboxController * AppsContainer::toolboxController() {
return &m_toolboxController;
}