From 8b1b6ce50585590c6167918f11311c1701e439d8 Mon Sep 17 00:00:00 2001 From: luoliangyi <87842688@qq.com> Date: Mon, 20 Nov 2023 11:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scanner2/dialog_exportimagefile.cpp | 4 ++++ app/scanner2/mainwindow.cpp | 2 +- app/scanner2/mainwindow.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/scanner2/dialog_exportimagefile.cpp b/app/scanner2/dialog_exportimagefile.cpp index 59961614..f66ee628 100644 --- a/app/scanner2/dialog_exportimagefile.cpp +++ b/app/scanner2/dialog_exportimagefile.cpp @@ -166,6 +166,7 @@ HGResult Dialog_ExportImageFile::processMultiFileOcr() ret = HGImgProc_AddToImageOCRList(ocrMgr, img); HGBase_DestroyImage(img); ++handleCount; + emit updateProgress(handleCount); if (HGBASE_ERR_OK != ret) { @@ -261,6 +262,7 @@ HGResult Dialog_ExportImageFile::processMultiFileGif() ret = HGImgFmt_SaveImageToGifWriter(gifWriter, 200, HG_MAKECOLOR(255, 255, 255, 255), img); HGBase_DestroyImage(img); ++handleCount; + emit updateProgress(handleCount); if (HGBASE_ERR_OK != ret) { @@ -348,6 +350,7 @@ HGResult Dialog_ExportImageFile::processMultiFile() ret = HGImgFmt_SaveImageToWriter(imgFmtWriter, img, &saveInfo); HGBase_DestroyImage(img); ++handleCount; + emit updateProgress(handleCount); if (HGBASE_ERR_OK != ret) { @@ -440,6 +443,7 @@ HGResult Dialog_ExportImageFile::processSingleFile() ret = MainWindow::saveImage(img, &saveInfo, m_isOcr, getStdString(fileName).c_str()); HGBase_DestroyImage(img); ++handleCount; + emit updateProgress(handleCount); if (HGBASE_ERR_OK != ret) { diff --git a/app/scanner2/mainwindow.cpp b/app/scanner2/mainwindow.cpp index 851cd980..9279c73c 100644 --- a/app/scanner2/mainwindow.cpp +++ b/app/scanner2/mainwindow.cpp @@ -1,4 +1,4 @@ -#include "mainwindow.h" +#include "mainwindow.h" #include "ui_mainwindow.h" #include #include diff --git a/app/scanner2/mainwindow.h b/app/scanner2/mainwindow.h index 4869c4bf..686dff2a 100644 --- a/app/scanner2/mainwindow.h +++ b/app/scanner2/mainwindow.h @@ -1,4 +1,4 @@ -#ifndef MAINWINDOW_H +#ifndef MAINWINDOW_H #define MAINWINDOW_H #include