mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kdeplasma-addons: fix regression since 87247ceaca
KImageIO::pattern() returns pattern for use in QFileDialog (glob and MIME comment included) which is not valid filter for QDirIterator Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ecbdf67627
commit
052d7bb86e
1 changed files with 8 additions and 1 deletions
|
@ -26,13 +26,20 @@
|
||||||
#include <KDebug>
|
#include <KDebug>
|
||||||
#include <KRandom>
|
#include <KRandom>
|
||||||
#include <KImageIO>
|
#include <KImageIO>
|
||||||
|
#include <KMimeType>
|
||||||
|
|
||||||
#include "picture.h"
|
#include "picture.h"
|
||||||
|
|
||||||
SlideShow::SlideShow(QObject *parent)
|
SlideShow::SlideShow(QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
{
|
{
|
||||||
m_filters << KImageIO::pattern(KImageIO::Reading);
|
foreach(const QString &mimeType, KImageIO::mimeTypes(KImageIO::Reading)) {
|
||||||
|
KMimeType::Ptr mime = KMimeType::mimeType(mimeType);
|
||||||
|
if (mime) {
|
||||||
|
m_filters << mime->patterns();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_slideNumber = 0;
|
m_slideNumber = 0;
|
||||||
m_useRandom = false;
|
m_useRandom = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue