优化了app.json解析

This commit is contained in:
2020-07-01 20:54:42 +08:00
parent 4a4c1ce5a6
commit 58304f2c19
8 changed files with 113 additions and 73 deletions

View File

@@ -11,15 +11,18 @@
#include <QProcess>
#include <QFuture>
#include <QToolButton>
#include <QTimer>
#define LIST_MAX 99
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
@@ -31,11 +34,10 @@ public:
void chooseLeftMenu(int index);
QPixmap screen[5];
QFuture<void> load;
QTimer download_speed;
private slots:
void on_webView_linkClicked(const QUrl &arg1);
void httpFinished();
void httpReadyRead();
void updateDataReadProgress(qint64,qint64);
@@ -81,7 +83,7 @@ private slots:
void on_comboBox_server_currentIndexChanged(const QString &arg1);
private:
public:
QUrl url;
bool isBusy=false;
downloadlist download_list[LIST_MAX];
@@ -97,6 +99,10 @@ private:
QUrl menuUrl[13];
bool configCanSeve=false;
int nowMenu=0;
long download_size=0;
long size1=0;
long size2=0;
};