From 0d8c7d7f197c9120f988137ab7f5daa0b7342bed Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Fri, 3 Mar 2023 17:57:31 +0800 Subject: [PATCH] =?UTF-8?q?ofd=E5=BC=80=E6=94=BE=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scanner/dialog_aquireinto.cpp | 2 +- app/scanner/dialog_export.cpp | 2 +- app/scanner/dialog_saveas.cpp | 2 +- app/scanner/dialog_writesettings.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scanner/dialog_aquireinto.cpp b/app/scanner/dialog_aquireinto.cpp index 3b67ed85..c86f5a17 100644 --- a/app/scanner/dialog_aquireinto.cpp +++ b/app/scanner/dialog_aquireinto.cpp @@ -165,7 +165,7 @@ void Dialog_AquireInto::on_cbox_format_currentIndexChanged(int index) if (index < 6 || index >= 10 ) ui->cbtn_multiFile->setChecked(false); - ui->btn_option->setEnabled(0 == index || 6 == index); + ui->btn_option->setEnabled(0 == index || 6 == index || 7 == index || 8 == index); } void Dialog_AquireInto::on_lineEdit_directory_textChanged(const QString& arg1) diff --git a/app/scanner/dialog_export.cpp b/app/scanner/dialog_export.cpp index 86047717..c430d580 100644 --- a/app/scanner/dialog_export.cpp +++ b/app/scanner/dialog_export.cpp @@ -64,7 +64,7 @@ Dialog_Export::Dialog_Export(int total, const std::vector &selectedIndexs, m_supportType.push_back(SupportType(".pbm", "PBM - Portable BitMap", FILE_TYPE_ATTR_NO_MORE_OPTION)); m_supportType.push_back(SupportType(".tif", "TIF - TIFF Revision 6", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES | FILE_TYPE_ATTR_MORE_OPTIONS)); m_supportType.push_back(SupportType(".pdf", "PDF - Portable Document Format", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES | FILE_TYPE_ATTR_MORE_OPTIONS)); - m_supportType.push_back(SupportType(".ofd", "OFD - Open Fixed-layout Document", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES)); + m_supportType.push_back(SupportType(".ofd", "OFD - Open Fixed-layout Document", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES | FILE_TYPE_ATTR_MORE_OPTIONS)); m_supportType.push_back(SupportType(".gif", "GIF - Graphics Interchange Format", FILE_TYPE_ATTR_CONTAIN_MULTI_PAGES)); #if 0 if (!getOcrPath().empty()) diff --git a/app/scanner/dialog_saveas.cpp b/app/scanner/dialog_saveas.cpp index a01a0920..5fa30992 100644 --- a/app/scanner/dialog_saveas.cpp +++ b/app/scanner/dialog_saveas.cpp @@ -257,7 +257,7 @@ void Dialog_SaveAs::on_dialog_accepted() void Dialog_SaveAs::on_filterSelected(const QString& filterName) { m_suffix = ui->fileDialog->nameFilters().indexOf(filterName); - ui->btn_option->setEnabled(0 == m_suffix || 6 == m_suffix); + ui->btn_option->setEnabled(0 == m_suffix || 6 == m_suffix || 7 == m_suffix || 8 == m_suffix); #if 0 ui->label_ocrType->setVisible(isOcr()); diff --git a/app/scanner/dialog_writesettings.cpp b/app/scanner/dialog_writesettings.cpp index 49df97c5..59fba5e4 100644 --- a/app/scanner/dialog_writesettings.cpp +++ b/app/scanner/dialog_writesettings.cpp @@ -8,7 +8,7 @@ Dialog_WriteSettings::Dialog_WriteSettings(int suffix_type, QWidget *parent) : { ui->setupUi(this); //set visible - bool jpg_enable = (suffix_type == 0 || suffix_type == 7); + bool jpg_enable = (suffix_type == 0 || suffix_type == 7 || suffix_type == 8); bool tif_enable = (suffix_type == 6); ui->lab_tif_bw->setVisible(tif_enable); ui->cbox_tif_bw->setVisible(tif_enable);