修复未发布版本打包器和wine下载工具的异线程修改UI的问题

This commit is contained in:
2022-08-21 12:53:04 +08:00
parent aac498bf7d
commit a62a937700
6 changed files with 49 additions and 18 deletions

View File

@@ -12,6 +12,7 @@
class DownloadThread : public QThread // 继承 QThread
{
Q_OBJECT
public:
DownloadThread(QProgressDialog *dialog, QString url, QString save, QString fileName, QListView *view, bool deleteZip, bool unzip, QJsonArray *localList);
void SettingVirtualMachine(QString savePath);
@@ -32,6 +33,8 @@ signals:
// 防止非主线程刷新控件导致程序退出
void MessageBoxInfo(QString info);
void MessageBoxError(QString info);
void ChangeDialog(QProgressDialog *dialog, int value, int downloadBytes, int totalBytes);
void Finish();
};
#endif // DOWNLOADTHREAD_H