void Step3::tuneColorDialog() { int hue = getIntOption(m_modelData,STR_HTML_COLORSTYLE_HUE); int sat = getIntOption(m_modelData,STR_HTML_COLORSTYLE_SAT); int gam = getIntOption(m_modelData,STR_HTML_COLORSTYLE_GAMMA); TuneColorDialog tuneColor(hue,sat,gam,this); if (tuneColor.exec()==QDialog::Accepted) { updateIntOption(m_modelData,STR_HTML_COLORSTYLE_HUE,tuneColor.getHue()); updateIntOption(m_modelData,STR_HTML_COLORSTYLE_SAT,tuneColor.getSaturation()); updateIntOption(m_modelData,STR_HTML_COLORSTYLE_GAMMA,tuneColor.getGamma()); } }
void MainWindow::tune_colors_PB() { int hue = m_ui->html_colorstyle_hue->value(); int sat = m_ui->html_colorstyle_sat->value(); int gamma = m_ui->html_colorstyle_gamma->value(); TuneColorDialog tuneColor(hue, sat, gamma, this); if (tuneColor.exec() == QDialog::Accepted) { m_ui->html_colorstyle_hue->setValue( tuneColor.getHue()); m_ui->html_colorstyle_sat->setValue( tuneColor.getSaturation()); m_ui->html_colorstyle_gamma->setValue(tuneColor.getGamma()); } }