From b8f697b5365ee779357d520b5d9abea415e75068 Mon Sep 17 00:00:00 2001 From: Yzzi <40852301+uiYzzi@users.noreply.github.com> Date: Fri, 14 Aug 2020 20:33:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BD=AF=E4=BB=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=87=8F=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- one-tomato.pro.user | 326 ++++++++++++++++++++++++++++++++++++++++++++ widget.cpp | 6 + 2 files changed, 332 insertions(+) create mode 100644 one-tomato.pro.user diff --git a/one-tomato.pro.user b/one-tomato.pro.user new file mode 100644 index 0000000..1b258e7 --- /dev/null +++ b/one-tomato.pro.user @@ -0,0 +1,326 @@ + + + + + + EnvironmentId + {c984afd7-ad77-4e42-80ff-04edfbc5af9c} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + true + + + + ProjectExplorer.Project.Target.0 + + 桌面 + 桌面 + {08ed8666-49eb-4397-84f4-cc7d57c3c0f9} + 0 + 0 + 0 + + /home/yzzi/Documents/GitHub/build-one-tomato-unknown-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/yzzi/Documents/GitHub/build-one-tomato-unknown-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + true + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + /home/yzzi/Documents/GitHub/build-one-tomato-unknown-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + true + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + 部署 + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy Configuration + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + one-tomato + + Qt4ProjectManager.Qt4RunConfiguration:/home/yzzi/Documents/GitHub/one-tomato-gitee/one-tomato.pro + one-tomato.pro + + 3768 + false + true + true + false + false + true + + /home/yzzi/Documents/GitHub/build-one-tomato-unknown-Debug + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 20 + + + Version + 20 + + diff --git a/widget.cpp b/widget.cpp index a22d061..62ffb76 100644 --- a/widget.cpp +++ b/widget.cpp @@ -10,6 +10,8 @@ #include #include #include "countdown.h" +#include + 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);