调整回调的调用方式

This commit is contained in:
yangjiaxuan 2022-10-12 11:51:41 +08:00
parent d056352880
commit 1f5d96a154
12 changed files with 14 additions and 14 deletions

View File

@ -4644,7 +4644,7 @@ void HGImgThumb::Show()
repaint();
}
void HGImgThumb::ThreadFunc(HGThread thread, HGPointer param)
void HGAPI HGImgThumb::ThreadFunc(HGThread thread, HGPointer param)
{
Q_UNUSED(thread);

View File

@ -192,7 +192,7 @@ private:
QRect getNullScrollPos();
void Show();
static void ThreadFunc(HGThread thread, HGPointer param);
static void HGAPI ThreadFunc(HGThread thread, HGPointer param);
private:
HGLock m_lockFront;

View File

@ -47,7 +47,7 @@ Dialog_ExportImageFile::~Dialog_ExportImageFile()
delete ui;
}
void Dialog_ExportImageFile::ThreadFunc(HGThread thread, HGPointer param)
void HGAPI Dialog_ExportImageFile::ThreadFunc(HGThread thread, HGPointer param)
{
(void)thread;
Dialog_ExportImageFile *p = (Dialog_ExportImageFile *)param;

View File

@ -19,7 +19,7 @@ public:
~Dialog_ExportImageFile();
private:
static void ThreadFunc(HGThread thread, HGPointer param);
static void HGAPI ThreadFunc(HGThread thread, HGPointer param);
signals:
void updateProgress(int value);

View File

@ -34,7 +34,7 @@ Dialog_MultiRotateImageFile::~Dialog_MultiRotateImageFile()
delete ui;
}
void Dialog_MultiRotateImageFile::ThreadFunc(HGThread thread, HGPointer param)
void HGAPI Dialog_MultiRotateImageFile::ThreadFunc(HGThread thread, HGPointer param)
{
(void)thread;
Dialog_MultiRotateImageFile *p = (Dialog_MultiRotateImageFile *)param;

View File

@ -20,7 +20,7 @@ signals:
void refreshImageFile(const QString &fileName);
private:
static void ThreadFunc(HGThread thread, HGPointer param);
static void HGAPI ThreadFunc(HGThread thread, HGPointer param);
signals:
void updateProgress(int value);

View File

@ -34,7 +34,7 @@ Dialog_updateProgress::~Dialog_updateProgress()
delete ui;
}
HGInt Dialog_updateProgress::HttpDownloadThreadFunc(HGULonglong totalSize, HGULonglong nowSize, HGPointer param)
HGInt HGAPI Dialog_updateProgress::HttpDownloadThreadFunc(HGULonglong totalSize, HGULonglong nowSize, HGPointer param)
{
Dialog_updateProgress *p = (Dialog_updateProgress *)param;
if (p->m_stopThread)
@ -50,7 +50,7 @@ HGInt Dialog_updateProgress::HttpDownloadThreadFunc(HGULonglong totalSize, HGULo
return 0;
}
void Dialog_updateProgress::ThreadFunc(HGThread thread, HGPointer param)
void HGAPI Dialog_updateProgress::ThreadFunc(HGThread thread, HGPointer param)
{
(void)thread;
Dialog_updateProgress *p = (Dialog_updateProgress *)param;

View File

@ -19,8 +19,8 @@ public:
const QString &savePath, QWidget *parent = nullptr);
~Dialog_updateProgress();
private:
static HGInt HttpDownloadThreadFunc(HGULonglong totalSize, HGULonglong nowSize, HGPointer param);
static void ThreadFunc(HGThread thread, HGPointer param);
static HGInt HGAPI HttpDownloadThreadFunc(HGULonglong totalSize, HGULonglong nowSize, HGPointer param);
static void HGAPI ThreadFunc(HGThread thread, HGPointer param);
signals:
void updateProgress(int value);

View File

@ -2404,7 +2404,7 @@ int MainWindow::sane_ex_callback(SANE_Handle hdev, int code, void *data, unsigne
return 0;
}
void MainWindow::CrashFunc(HGPointer crashAddr, HGPointer param)
void HGAPI MainWindow::CrashFunc(HGPointer crashAddr, HGPointer param)
{
MainWindow *p = (MainWindow *)param;

View File

@ -222,7 +222,7 @@ protected:
private:
static int sane_ex_callback(SANE_Handle hdev, int code, void *data, unsigned int* len, void *param);
static void CrashFunc(HGPointer crashAddr, HGPointer param);
static void HGAPI CrashFunc(HGPointer crashAddr, HGPointer param);
HGUInt getDpi();
QString getCacheFileName(HGImage img);

View File

@ -83,7 +83,7 @@ bool MainWindow::Upgrade(const std::string& pkgPath)
return ret;
}
void MainWindow::ThreadFunc(HGThread thread, HGPointer param)
void HGAPI MainWindow::ThreadFunc(HGThread thread, HGPointer param)
{
(void)thread;
MainWindow* p = (MainWindow*)param;

View File

@ -23,7 +23,7 @@ signals:
private:
static bool Upgrade(const std::string& pkgPath);
static void ThreadFunc(HGThread thread, HGPointer param);
static void HGAPI ThreadFunc(HGThread thread, HGPointer param);
private:
Ui::MainWindow *ui;