diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-23 15:26:01 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-23 15:26:01 -0400 |
commit | e8248bc9cdf8b1bee6a7a6550a93846f6e045318 (patch) | |
tree | 43a397e9dece216e41fbde6d1e60427c27bfe036 /src-qt5/core/lumina-desktop-unified | |
parent | Clean up some more of the new LuminaRandR class. (diff) | |
download | lumina-e8248bc9cdf8b1bee6a7a6550a93846f6e045318.tar.gz lumina-e8248bc9cdf8b1bee6a7a6550a93846f6e045318.tar.bz2 lumina-e8248bc9cdf8b1bee6a7a6550a93846f6e045318.zip |
Large amount of whitespace cleanup, and almost get the LuminaRandR class finished (one last calculation to do)
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp | 5 | ||||
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Fireflies.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp index 4cc6d68b..cdcf2434 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/LLockScreen.cpp @@ -10,13 +10,13 @@ #include <unistd.h> #define NUMTRIES 3 -#define WAITMINS 1 +//#define WAITMINS 1 #define DEBUG 1 LLockScreen::LLockScreen(QWidget *parent) : QWidget(parent), ui(new Ui::LLockScreen()){ ui->setupUi(this); waittime = new QTimer(this); - waittime->setInterval(WAITMINS*60000); //(too many attempts in short time) + //waittime->setInterval(WAITMINS*60000); //(too many attempts in short time) waittime->setSingleShot(true); refreshtime = new QTimer(this); //timer to update the wait time display refreshtime->setInterval(6000); //6 seconds (1/10 second) @@ -92,6 +92,7 @@ void LLockScreen::TryUnlock(){ if(triesleft>0){ this->setEnabled(true); }else{ + waittime->setInterval( (attempts/NUMTRIES)*60000); waittime->start(); refreshtime->start(); } diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Fireflies.h b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Fireflies.h index 4e5acc3c..f1ef5fa3 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Fireflies.h +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Fireflies.h @@ -83,7 +83,7 @@ public: this->stop(); //while(fireflies.length()>0){ fireflies.takeAt(0)->deleteLater(); } } - + void LoadAnimations(){ while(fireflies.length()>0){ fireflies.takeAt(0)->deleteLater(); } canvas->setStyleSheet("background: black;"); |