加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pkgdownloaddlg.h 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
cloud8352 提交于 2021-12-06 20:31 . Add files via upload
#pragma once
#include "appmanagercommon.h"
#include <DFrame>
class AppManagerModel;
DWIDGET_BEGIN_NAMESPACE
class DBlurEffectWidget;
class DTitlebar;
class DProgressBar;
DWIDGET_END_NAMESPACE
class QMenu;
class QAction;
class QPushButton;
class QLabel;
class QTextEdit;
DWIDGET_USE_NAMESPACE
class PkgDownloadDlg : public DFrame
{
Q_OBJECT
public:
explicit PkgDownloadDlg(AppManagerModel *model, QWidget *parent = nullptr);
virtual ~PkgDownloadDlg() override;
protected:
virtual void resizeEvent(QResizeEvent *event) override;
virtual void closeEvent(QCloseEvent *event) override;
public Q_SLOTS:
void onVerSelectMenuTrigered(QAction *action);
void onFileDownloadProgressChanged(const QString &url, qint64 bytesRead, qint64 totalBytes);
private:
void initConnection();
void updateUI();
private:
AppManagerModel *m_model;
AM::AppInfo m_showingAppInfo;
DBlurEffectWidget *m_centralWidgetBlurBg;
DTitlebar *m_titlebar;
AM::PkgInfo m_selectedPkgInfo;
QMenu *m_versionSelectMenu;
QList<QAction *> m_versionActionList;
QPushButton *m_versionSelectBtn;
QPushButton *m_downloadBtn;
bool m_isDownloading;
QPushButton *m_openDirBtn;
QLabel *m_pkgSizeLable;
DProgressBar *m_progressBar;
QTextEdit *m_infoEdit;
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化