mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Consider document's output intents in color transformation
This commit is contained in:
@ -305,6 +305,8 @@ void PDFViewerSettingsDialog::loadData()
|
||||
ui->cmsAccuracyComboBox->setCurrentIndex(ui->cmsAccuracyComboBox->findData(int(m_cmsSettings.accuracy)));
|
||||
ui->cmsIsBlackPointCompensationCheckBox->setEnabled(true);
|
||||
ui->cmsIsBlackPointCompensationCheckBox->setChecked(m_cmsSettings.isBlackPointCompensationActive);
|
||||
ui->cmsConsiderOutputIntentCheckBox->setEnabled(true);
|
||||
ui->cmsConsiderOutputIntentCheckBox->setChecked(m_cmsSettings.isConsiderOutputIntent);
|
||||
ui->cmsWhitePaperColorTransformedCheckBox->setEnabled(true);
|
||||
ui->cmsWhitePaperColorTransformedCheckBox->setChecked(m_cmsSettings.isWhitePaperColorTransformed);
|
||||
ui->cmsOutputColorProfileComboBox->setEnabled(true);
|
||||
@ -327,6 +329,8 @@ void PDFViewerSettingsDialog::loadData()
|
||||
ui->cmsAccuracyComboBox->setCurrentIndex(-1);
|
||||
ui->cmsIsBlackPointCompensationCheckBox->setEnabled(false);
|
||||
ui->cmsIsBlackPointCompensationCheckBox->setChecked(false);
|
||||
ui->cmsConsiderOutputIntentCheckBox->setEnabled(false);
|
||||
ui->cmsConsiderOutputIntentCheckBox->setChecked(false);
|
||||
ui->cmsWhitePaperColorTransformedCheckBox->setEnabled(false);
|
||||
ui->cmsWhitePaperColorTransformedCheckBox->setChecked(false);
|
||||
ui->cmsOutputColorProfileComboBox->setEnabled(false);
|
||||
@ -472,6 +476,10 @@ void PDFViewerSettingsDialog::saveData()
|
||||
{
|
||||
m_cmsSettings.isWhitePaperColorTransformed = ui->cmsWhitePaperColorTransformedCheckBox->isChecked();
|
||||
}
|
||||
else if (sender == ui->cmsConsiderOutputIntentCheckBox)
|
||||
{
|
||||
m_cmsSettings.isConsiderOutputIntent = ui->cmsConsiderOutputIntentCheckBox->isChecked();
|
||||
}
|
||||
else if (sender == ui->cmsOutputColorProfileComboBox)
|
||||
{
|
||||
m_cmsSettings.outputCS = ui->cmsOutputColorProfileComboBox->currentData().toString();
|
||||
|
Reference in New Issue
Block a user