14 if (!_threshold1Fact) {
15 _threshold1Fact = _createSettingsFact(threshold1Name);
18 return _threshold1Fact;
23 if (!_threshold2Fact) {
24 _threshold2Fact = _createSettingsFact(threshold2Name);
27 return _threshold2Fact;
31void BatteryIndicatorSettings::_threshold1Changed() {
35void BatteryIndicatorSettings::_threshold2Changed() {
40void BatteryIndicatorSettings::validateThreshold1() {
46void BatteryIndicatorSettings::validateThreshold2() {
56 }
else if (value > 99) {
60 if (value >
threshold2()->rawValue().toInt()) {
78 if (value <
threshold1()->rawValue().toInt()) {
#define DECLARE_SETTINGSFACT_NO_FUNC(CLASS, NAME)
#define DECLARE_SETTINGSFACT(CLASS, NAME)
#define DECLARE_SETTINGGROUP(NAME, GROUP)
void setThreshold2(int value)
void setThreshold1(int value)
Fact *threshold2 READ threshold2 CONSTANT Fact * threshold2()
Fact *threshold1 READ threshold1 CONSTANT Fact * threshold1()
void rawValueChanged(const QVariant &value)