void TohoSettings::readSettings() { qDebug() << "reading settings"; QSettings settings("harbour-toholed", "toholed"); settings.beginGroup("basic"); m_blink = settings.value("blink", true).toBool(); m_als = settings.value("als", true).toBool(); m_prox = settings.value("proximity", true).toBool(); m_ssp = settings.value("ssp", false).toBool(); m_displayOffWhenMainActive = settings.value("displayOffWhenMainActive", false).toBool(); m_analogClockFace = settings.value("analogClockFace", false).toBool(); m_showAlarmsPresent = settings.value("showAlarmsPresent", true).toBool(); m_showCurrentTemperature = settings.value("showCurrentTemperature", true).toBool(); settings.endGroup(); emit blinkChanged(); emit alsChanged(); emit proxChanged(); emit sspChanged(); emit displayOffWhenMainActiveChanged(); emit analogClockFaceChanged(); emit showAlarmsPresentChanged(); emit showCurrentTemperatureChanged(); }
void Blinkink::setblink(bool arg) { if (m_blink != arg) { m_blink = arg; if(arg) _animation.start(); else { _animation.stop(); setStep(1); } emit blinkChanged(arg); } }