OSDN Git Service

kdeplasma-addons: replace KRandomSequence::randomize() with KRandom::randomize()
authorIvailo Monev <xakepa10@gmail.com>
Mon, 26 Sep 2022 08:42:20 +0000 (11:42 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 26 Sep 2022 08:42:20 +0000 (11:42 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kdeplasma-addons/applets/frame/slideshow.cpp

index d508de1..ce69536 100644 (file)
@@ -24,7 +24,7 @@
 #include <QTimer>
 
 #include <KDebug>
-#include <KRandomSequence>
+#include <KRandom>
 #include <KImageIO>
 
 #include "picture.h"
@@ -77,14 +77,13 @@ void SlideShow::setDirs(const QStringList &slideShowPath, bool recursive)
 
 void SlideShow::setupRandomSequence()
 {
-    KRandomSequence randomSequence;
     m_indexList.clear();
 
     for (int j = 0; j < m_picturePaths.count(); j++) {
         m_indexList.append(j);
     }
 
-    randomSequence.randomize(m_indexList);
+    KRandom::randomize(m_indexList);
 }
 
 void SlideShow::setImage(const QString &imagePath)