mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Update: Compilation fix for Qt 6.6, update of RELEASES.txt
This commit is contained in:
@@ -57,7 +57,7 @@ QColor CreateRedactedDocumentDialog::getRedactColor() const
|
||||
|
||||
if (ui->fillRedactedAreaCheckBox->isChecked())
|
||||
{
|
||||
color.setNamedColor(ui->fillRedactedAreaColorEdit->text());
|
||||
color.fromString(ui->fillRedactedAreaColorEdit->text());
|
||||
}
|
||||
|
||||
return color;
|
||||
@@ -107,7 +107,7 @@ void CreateRedactedDocumentDialog::accept()
|
||||
if (ui->fillRedactedAreaCheckBox->isChecked())
|
||||
{
|
||||
QColor color;
|
||||
color.setNamedColor(ui->fillRedactedAreaColorEdit->text());
|
||||
color.fromString(ui->fillRedactedAreaColorEdit->text());
|
||||
if (!color.isValid())
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), tr("Cannot convert '%1' to color value.").arg(ui->fillRedactedAreaColorEdit->text()));
|
||||
|
@@ -55,7 +55,7 @@ void SettingsDialog::accept()
|
||||
{
|
||||
m_settings.proofingIntent = static_cast<pdf::RenderingIntent>(ui->cmsProofingIntentComboBox->currentData().toInt());
|
||||
m_settings.softProofingProfile = ui->cmsProofingColorProfileComboBox->currentData().toString();
|
||||
m_settings.outOfGamutColor.setNamedColor(ui->outOfGamutColorEdit->text());
|
||||
m_settings.outOfGamutColor.fromString(ui->outOfGamutColorEdit->text());
|
||||
if (!m_settings.outOfGamutColor.isValid())
|
||||
{
|
||||
m_settings.outOfGamutColor = Qt::red;
|
||||
|
Reference in New Issue
Block a user