OSDN Git Service
(root)
/
kde
/
kde-extraapps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c538900
)
kdeplasma-addons: replace KRandomSequence::randomize() with KRandom::randomize()
author
Ivailo Monev
<xakepa10@gmail.com>
Mon, 26 Sep 2022 08:42:20 +0000
(11:42 +0300)
committer
Ivailo 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
patch
|
blob
|
history
diff --git
a/kdeplasma-addons/applets/frame/slideshow.cpp
b/kdeplasma-addons/applets/frame/slideshow.cpp
index
d508de1
..
ce69536
100644
(file)
--- a/
kdeplasma-addons/applets/frame/slideshow.cpp
+++ b/
kdeplasma-addons/applets/frame/slideshow.cpp
@@
-24,7
+24,7
@@
#include <QTimer>
#include <KDebug>
-#include <KRandom
Sequence
>
+#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)