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

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

@@ -22,13 +22,14 @@ class DownloadListWidget : public DBlurEffectWidget
public:
void addItem(QString name, QString fileName, QString pkgName, const QPixmap icon, QString downloadurl);
int isDownloading(QString url);
int nowDownload = 0;
int allDownload = 0;
QList<DownloadItem *> getDIList();
void m_move(int x, int y);
explicit DownloadListWidget(QWidget *parent = nullptr);
~DownloadListWidget();
private:
int nowDownload = 0;
int allDownload = 0;
int isdownload = false;
bool isBusy = false;
QStringList dlist;
@@ -51,6 +52,8 @@ private slots:
bool eventFilter(QObject *, QEvent *);
void mouseMoveEvent(QMouseEvent *event);
void on_pushButton_clicked();
signals:
void downloadFinished();
};
#endif // DOWNLOADLISTWIDGET_H