From 4d55c6436e1c6ed2685878c26a708441667bd18b Mon Sep 17 00:00:00 2001 From: lvhan Date: Thu, 29 Apr 2021 15:18:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=2051929=20=E3=80=90wifi=E3=80=91wifi?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=8A=A0=E8=BD=BD=E8=BD=AC=E5=9C=88=E6=96=B9?= =?UTF-8?q?=E5=90=91=E4=B8=8E=E7=AE=AD=E5=A4=B4=E6=96=B9=E5=90=91=E7=9B=B8?= =?UTF-8?q?=E5=8F=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/loadingdiv.cpp | 8 ++++---- src/mainwindow.cpp | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/loadingdiv.cpp b/src/loadingdiv.cpp index fe339ad9..ddaeef31 100644 --- a/src/loadingdiv.cpp +++ b/src/loadingdiv.cpp @@ -50,10 +50,10 @@ void LoadingDiv::switchAnimStep() loadingGif->setProperty("useIconHighlightEffect", true); loadingGif->setProperty("iconHighlightEffectMode", true); - this->currentPage ++; + this->currentPage --; - if (this->currentPage > 12) { - this->currentPage = 1; //循环播放 + if (this->currentPage < 1) { + this->currentPage = 12; //循环播放 } this->countCurrentTime += FRAMESPEED; if (this->countCurrentTime >= ALLTIME) { @@ -64,7 +64,7 @@ void LoadingDiv::switchAnimStep() //开始播放动画 void LoadingDiv::startLoading() { - this->currentPage = 1; + this->currentPage = 12; this->countCurrentTime = 0; this->switchTimer->start(FRAMESPEED); this->show(); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0e21eb2e..cf0837b5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -618,18 +618,18 @@ void MainWindow::createTrayIcon() iconWifiMedium = QIcon::fromTheme("network-wireless-signal-ok"); iconWifiLow = QIcon::fromTheme("network-wireless-signal-low"); - loadIcons.append(QIcon::fromTheme("kylin-network-1")); - loadIcons.append(QIcon::fromTheme("kylin-network-2")); - loadIcons.append(QIcon::fromTheme("kylin-network-3")); - loadIcons.append(QIcon::fromTheme("kylin-network-4")); - loadIcons.append(QIcon::fromTheme("kylin-network-5")); - loadIcons.append(QIcon::fromTheme("kylin-network-6")); - loadIcons.append(QIcon::fromTheme("kylin-network-7")); - loadIcons.append(QIcon::fromTheme("kylin-network-8")); - loadIcons.append(QIcon::fromTheme("kylin-network-9")); - loadIcons.append(QIcon::fromTheme("kylin-network-10")); - loadIcons.append(QIcon::fromTheme("kylin-network-11")); loadIcons.append(QIcon::fromTheme("kylin-network-12")); + loadIcons.append(QIcon::fromTheme("kylin-network-11")); + loadIcons.append(QIcon::fromTheme("kylin-network-10")); + loadIcons.append(QIcon::fromTheme("kylin-network-9")); + loadIcons.append(QIcon::fromTheme("kylin-network-8")); + loadIcons.append(QIcon::fromTheme("kylin-network-7")); + loadIcons.append(QIcon::fromTheme("kylin-network-6")); + loadIcons.append(QIcon::fromTheme("kylin-network-5")); + loadIcons.append(QIcon::fromTheme("kylin-network-4")); + loadIcons.append(QIcon::fromTheme("kylin-network-3")); + loadIcons.append(QIcon::fromTheme("kylin-network-2")); + loadIcons.append(QIcon::fromTheme("kylin-network-1")); iconTimer = new QTimer(this); connect(iconTimer, SIGNAL(timeout()), this, SLOT(iconStep()));