aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-screensaver
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-08-31 14:39:56 -0400
committerKen Moore <ken@ixsystems.com>2017-08-31 14:39:56 -0400
commit3d02eea401b5a5571eeec34fbc75cc48f87c2bcb (patch)
tree946082f7db3fe99ad914da90b7b25c7ade7129d9 /src-qt5/core/lumina-desktop-unified/src-screensaver
parentA large amount of cleanup: (diff)
downloadlumina-3d02eea401b5a5571eeec34fbc75cc48f87c2bcb.tar.gz
lumina-3d02eea401b5a5571eeec34fbc75cc48f87c2bcb.tar.bz2
lumina-3d02eea401b5a5571eeec34fbc75cc48f87c2bcb.zip
A bit more cleanup. Nothing too special.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-screensaver')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-screensaver/animations/ImageSlideshow.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/ImageSlideshow.h b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/ImageSlideshow.h
index fd98acb6..81bc2b35 100644
--- a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/ImageSlideshow.h
+++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/ImageSlideshow.h
@@ -54,6 +54,7 @@ private:
while(curpixmap==randomFile){ randomFile = imagePath+imageFiles[qrand() % imageFiles.size()]; }
}
if(curpixmap!=randomFile){
+ curpixmap = randomFile; //save this for later
//no need to load the new file or change the label
pixmap.load(randomFile);
//If the image is larger than the screen, then shrink the image down to 3/4 it's size (so there's still some bounce)
@@ -125,8 +126,8 @@ public:
//If no animation, center the image in the middle of the screen
image->move(QPoint((parent->width()-image->width())/2,(parent->height()-image->height())/2));
- //Loop through 30 times for a total for 4 minutes
- this->setLoopCount(30);
+ //Loop through 15 times for a total for 2 minutes
+ this->setLoopCount(15);
bounce->setDuration(8000);
fading->setDuration(8000);
bgstack15