diff options
author | Ken Moore <ken@ixsystems.com> | 2017-07-11 16:30:45 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-07-11 16:30:45 -0400 |
commit | 575533f902657faa7f2a3b8b889b1da90458a57f (patch) | |
tree | 30c9c052634060e31ca397c8e3fbd88e4c05a4d3 /src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp | |
parent | Added more key support for Lumina 2.0 (diff) | |
download | lumina-575533f902657faa7f2a3b8b889b1da90458a57f.tar.gz lumina-575533f902657faa7f2a3b8b889b1da90458a57f.tar.bz2 lumina-575533f902657faa7f2a3b8b889b1da90458a57f.zip |
Get the keyboard shortcut for "LockScreen" (case-insensitive) working, and fix some connection warnings.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp index 943fe0a1..b31ef793 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp @@ -25,7 +25,7 @@ SSBaseWidget::SSBaseWidget(QWidget *parent, QSettings *set) : QWidget(parent){ SSBaseWidget::~SSBaseWidget(){ if(ANIM!=0){ this->stopPainting(); } } - + void SSBaseWidget::setPlugin(QString plug){ plug = plug.toLower(); if(validPlugs.contains(plug) || plug=="random"){ plugType = plug; } @@ -38,12 +38,12 @@ void SSBaseWidget::setPlugin(QString plug){ void SSBaseWidget::startPainting(){ cplug = plugType; //free up any old animation instance - if(ANIM!=0){ + if(ANIM!=0){ ANIM->stop(); ANIM->clear(); - delete ANIM; ANIM = 0; - } + delete ANIM; ANIM = 0; + } //If a random plugin - grab one of the known plugins - if(cplug=="random"){ + if(cplug=="random"){ QStringList valid = BaseAnimGroup::KnownAnimations(); valid.removeAll("none"); //they want a screensaver - remove the "none" option from the valid list if(valid.isEmpty()){ cplug = "none"; } //no known plugins @@ -67,9 +67,9 @@ void SSBaseWidget::startPainting(){ } //Now start the animation(s) if(ANIM!=0){ - if(ANIM->animationCount()>0){ + if(ANIM->animationCount()>0){ if(DEBUG){ qDebug() << " - Starting SS Plugin:" << cplug << ANIM->animationCount() << ANIM->duration() << ANIM->loopCount(); } - ANIM->start(); + ANIM->start(); } } } |