Ref T28, allow to set updater to really show if it is "on"

This commit is contained in:
Klaus Basan
2017-05-04 02:09:44 +02:00
committed by Mathew Sutcliffe
parent e7e984227b
commit 0fd3857b87
5 changed files with 31 additions and 5 deletions

View File

@@ -16,6 +16,7 @@
#include <QFrame>
namespace Ui { class CSettingsModelComponent; }
namespace BlackCore { namespace Db { class CBackgroundDataUpdater; }}
namespace BlackGui
{
namespace Components
@@ -37,9 +38,13 @@ namespace BlackGui
//! Interval, -1 for disabled
int getBackgroundUpdaterIntervallSecs() const;
//! Updater (the updater this setting is for)
void setBackgroundUpdater(BlackCore::Db::CBackgroundDataUpdater *updater);
private:
QScopedPointer<Ui::CSettingsModelComponent> ui;
BlackMisc::CSetting<BlackGui::Settings::TBackgroundConsolidation> m_consolidationSetting { this, &CSettingsModelComponent::cacheChanged }; //!< consolidation time
BlackCore::Db::CBackgroundDataUpdater *m_updater = nullptr;
//! Consolidation time entered
void consolidationEntered();