添加软件使用量统计

This commit is contained in:
Yzzi
2020-08-14 20:33:50 +08:00
parent 3304a410c9
commit b8f697b536
2 changed files with 332 additions and 0 deletions
+6
View File
@@ -10,6 +10,8 @@
#include <QDialog>
#include <DInputDialog>
#include "countdown.h"
#include <QtNetwork/QtNetwork>
using namespace std;
Widget::Widget(DBlurEffectWidget *parent) :
DBlurEffectWidget(parent),
@@ -65,6 +67,10 @@ Widget::Widget(DBlurEffectWidget *parent) :
connect(m_45,&QAction::triggered,[=](){count->mem=count->ms = 2700;refresh();});
connect(m_set,&QAction::triggered,[=](){input();refresh();});
//软件使用量统计
QNetworkAccessManager *tongji;
tongji->get(QNetworkRequest(QUrl("http://limexb.gitee.io/one/tomato")));
//实例化对象
count=new countDown(this);
toptime=new topTime(this);