This commit is contained in:
luoliangyi 2023-11-20 11:08:06 +08:00
parent 001eaf65cf
commit 8b1b6ce505
3 changed files with 6 additions and 2 deletions

View File

@ -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)
{

View File

@ -1,4 +1,4 @@
#include "mainwindow.h"
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDockWidget>
#include <QFileDialog>

View File

@ -1,4 +1,4 @@
#ifndef MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>