void createDefaultSettings() { checkAndSetValue(kUrlId, QString("http://127.0.0.1:8384")); checkAndSetValue(kMonochromeIconId, false); checkAndSetValue(kWebZoomFactorId, 1.0); checkAndSetValue(kShutDownExitId, true); checkAndSetValue(kNotificationsEnabledId, true); checkAndSetValue(kSettingsAvailableId, true); checkAndSetValue(kLaunchSyncthingStartupId, false); checkAndSetValue(kIconAnimcationsEnabledId, false); checkAndSetValue(kPollingIntervalId, 1.0); checkAndSetValue(kApiKeyId, qst::utilities::readAPIKey()); checkAndSetValue(kWebWindowSizeId, QSize(1280, 800)); checkAndSetValue(kSyncthingPathId, sysutils::SystemUtility().getDefaultSyncthingLocation()); checkAndSetValue(kInotifyPathId, sysutils::SystemUtility().getDefaultSyncthingINotifyLocation()); checkAndSetValue(kLastUpdateCheckId, QDateTime().currentDateTime()); checkAndSetValue(kLastShownUpdateId, QString("0")); checkAndSetValue(kStatsLengthId, 1); }
void setValue(int value){ m_scrollEventIsBlocked = true; m_value = value; checkAndSetValue();}