void EditableFilterDialog::configure() { SD_TRACE("Start build configuration dialog"); _configDialog->setCMakePath(_model->getCMakePath()); _configDialog->setPATH(_model->getPATH()); _configDialog->setGenerator(_model->getCMakeGenerator()); if (_configDialog->exec() == QDialog::Accepted) { if (_model->getCMakeGenerator() != _configDialog->getGenerator()) { if (!_model->removeBuildCache()) { SD_ERR(tr("Failed to remove build cache. Please, remove manually the folder 'Build' at '<INSTALLATION_FOLDER>/Resources/Build'")); return; } } _model->setCMakePath(_configDialog->getCMakePath()); _model->setPATH(_configDialog->getPATH()); _model->setCMakeGenerator(_configDialog->getGenerator()); setConfigToSettings(); _model->runTestCmake(); } }
QVariant VConfigManager::resetDefaultConfig(const QString &p_section, const QString &p_key) { QVariant defaultValue = getDefaultConfig(p_section, p_key); setConfigToSettings(p_section, p_key, defaultValue); return defaultValue; }
void VConfigManager::setWebZoomFactor(qreal p_factor) { if (isCustomWebZoomFactor()) { if (VUtils::realEqual(m_webZoomFactor, p_factor)) { return; } else if (VUtils::realEqual(p_factor, -1)) { m_webZoomFactor = VUtils::calculateScaleFactor(); setConfigToSettings("global", "web_zoom_factor", -1); return; } } else { if (VUtils::realEqual(p_factor, -1)) { return; } } m_webZoomFactor = p_factor; setConfigToSettings("global", "web_zoom_factor", m_webZoomFactor); }