forked from blue/squawk
download files error handling
This commit is contained in:
parent
cc54c6393a
commit
2089d6af86
13 changed files with 199 additions and 9 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
|
||||
void addDownloadDialog();
|
||||
void showFile(const QString& path);
|
||||
void showError(const QString& error);
|
||||
void setProgress(qreal value);
|
||||
|
||||
signals:
|
||||
|
@ -66,10 +67,12 @@ private:
|
|||
QLabel* file;
|
||||
QProgressBar* progress;
|
||||
QLabel* fileComment;
|
||||
QString errorText;
|
||||
bool hasDownloadButton;
|
||||
bool hasProgress;
|
||||
bool hasFile;
|
||||
bool commentAdded;
|
||||
bool errorDownloadingFile;
|
||||
|
||||
private slots:
|
||||
void onDownload();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue