Ref T152, the fix for the issue reported: everything was prepared, but the setting not changed in the UI. Now excluded models can be added to model set.

This commit is contained in:
Klaus Basan
2017-09-19 00:57:04 +02:00
committed by Mathew Sutcliffe
parent 8b8bc9b994
commit 2f577b7209
3 changed files with 36 additions and 4 deletions

View File

@@ -13,6 +13,7 @@
#define BLACKGUI_COMPONENTS_SETTINGSMODELCOMPONENT_H
#include "blackgui/settings/guisettings.h"
#include "blackmisc/simulation/settings/modelsettings.h"
#include <QFrame>
namespace Ui { class CSettingsModelComponent; }
@@ -43,12 +44,16 @@ namespace BlackGui
private:
QScopedPointer<Ui::CSettingsModelComponent> ui;
BlackMisc::CSetting<BlackGui::Settings::TBackgroundConsolidation> m_consolidationSetting { this, &CSettingsModelComponent::cacheChanged }; //!< consolidation time
BlackMisc::CSetting<Settings::TBackgroundConsolidation> m_consolidationSetting { this, &CSettingsModelComponent::cacheChanged }; //!< consolidation time
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TModel> m_modelSettings { this, &CSettingsModelComponent::cacheChanged }; //!< model setting
const BlackCore::Db::CBackgroundDataUpdater *m_updater = nullptr; //!< externally (i.e. other component) provided existing updater
//! Consolidation time entered
void consolidationEntered();
//! Allow excluded models changed
void allowExcludedModelsChanged(bool allow);
//! Cache has been changed
void cacheChanged();
};