Ref T28, settings for updater

This commit is contained in:
Klaus Basan
2017-05-03 02:23:55 +02:00
committed by Mathew Sutcliffe
parent f12b69bb87
commit f4af5e6cc1
3 changed files with 100 additions and 8 deletions

View File

@@ -12,6 +12,7 @@
#ifndef BLACKGUI_COMPONENTS_SETTINGSMODELCOMPONENT_H
#define BLACKGUI_COMPONENTS_SETTINGSMODELCOMPONENT_H
#include "blackgui/settings/guisettings.h"
#include <QFrame>
namespace Ui { class CSettingsModelComponent; }
@@ -33,8 +34,18 @@ namespace BlackGui
//! Destructor
virtual ~CSettingsModelComponent();
//! Interval, -1 for disabled
int getBackgroundUpdaterIntervallSecs() const;
private:
QScopedPointer<Ui::CSettingsModelComponent> ui;
BlackMisc::CSetting<BlackGui::Settings::TBackgroundConsolidation> m_consolidationSetting { this, &CSettingsModelComponent::cacheChanged }; //!< consolidation time
//! Consolidation time entered
void consolidationEntered();
//! Cache has been changed
void cacheChanged();
};
} // ns
} // ns