diff options
Diffstat (limited to 'pictureviewer2.cpp')
-rw-r--r-- | pictureviewer2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pictureviewer2.cpp b/pictureviewer2.cpp index 88522e0..7a75be1 100644 --- a/pictureviewer2.cpp +++ b/pictureviewer2.cpp @@ -114,6 +114,10 @@ void PictureViewer2::readSettings(){ mBgColor = t.value<QColor>(); } +void PictureViewer2::shuffle(){ + std::random_shuffle(mFiles.begin(), mFiles.end()); +} + void PictureViewer2::wheelEvent(QWheelEvent *event){ int steps = event->delta() / 8 / 15; if(steps < 0){ |