添加应用详情页下载量显示

This commit is contained in:
2022-12-11 02:05:34 +08:00
parent 8a54dd92a3
commit 333a1168d4
5 changed files with 85 additions and 1 deletions

View File

@@ -9,6 +9,12 @@ AppIntoPage::AppIntoPage(QWidget *parent) :
ui->listWidget->setMovement(QListView::Static);
ui->listWidget->setMaximumHeight(200);
ui->listWidget->setFlow(QListView::TopToBottom);
api1=new SparkAPI(this);
connect(api1,&SparkAPI::finishedRAW,[=](QString download_times){
download_times.remove(QRegExp("\\n"));
ui->download_times->setText(download_times);
qDebug()<<"Download Times:"+download_times;
});
clear();
}
@@ -179,6 +185,7 @@ void AppIntoPage::openUrl(QUrl url)
api->deleteLater();
});
api->getAppInfo(url);
api1->getAppDownloadTimes(url);
}
void AppIntoPage::isDownloading()