[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeaddons/konq-plugins/kimgalleryplugin
From: Maks Orlovich <mo002j () mail ! rochester ! edu>
Date: 2003-01-13 6:26:19
[Download RAW message or body]
CVS commit by orlovich:
-Use KImageIO to find out list of supported extensions, and don't hardcode it.
Fixes #33338 - XPM files getting ignored.
CCMAIL: 33338-done@bugs.kde.org
M +8 -1 imgalleryplugin.cpp 1.38
--- kdeaddons/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp #1.37:1.38
@@ -36,4 +36,5 @@ Boston, MA 02111-1307, USA.
#include <kurl.h>
#include <kapplication.h>
+#include <kimageio.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -279,5 +281,10 @@ bool KImGalleryPlugin::createHtml(const
kdDebug() << "sourceDirName: " << sourceDirName << endl;
- QDir imageDir( sourceDirName, "*.png *.PNG *.gif *.GIF *.jpg *.JPG *.jpeg *.JPEG *.bmp *.BMP",
+ QString suffixes;
+ //We're interested in only the patterns, so look for the first |
+ //#### perhaps an accessor should be added to KImageIO instead?
+ QString filter = KImageIO::pattern(KImageIO::Reading).section('|', 0, 0);
+
+ QDir imageDir( sourceDirName, filter.latin1(),
QDir::Name|QDir::IgnoreCase, QDir::Files|QDir::Readable);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic