下载完成后自动更改按钮文案

This commit is contained in:
2022-12-09 11:33:48 +08:00
committed by uniartisan
parent f0604afcfc
commit 3fecd41c4f
3 changed files with 20 additions and 4 deletions

View File

@@ -96,6 +96,11 @@ void DownloadListWidget::addItem(QString name,QString fileName,QString pkgName,c
}
}
QList<DownloadItem *> DownloadListWidget::getDIList()
{
return downloaditemlist;
}
void DownloadListWidget::startRequest(QUrl url, QString fileName)
{
ui->listWidget->show();
@@ -117,6 +122,7 @@ void DownloadListWidget::httpFinished() // 完成下载
isBusy = false;
downloaditemlist[nowDownload - 1]->readyInstall();
downloaditemlist[nowDownload - 1]->free = true;
emit downloadFinished();
if(nowDownload < allDownload)
{