summaryrefslogtreecommitdiff
authoralwin <alwin>2004-04-15 14:14:41 (UTC)
committer alwin <alwin>2004-04-15 14:14:41 (UTC)
commit9e9a216efd88f47da583c481c874f0426e7d1a1e (patch) (side-by-side diff)
tree8067e7d2298e897dcb423cf594d4efe88b579cfa
parentb07457bba11c6bc13d35c31c15353350a16ad3a4 (diff)
downloadopie-9e9a216efd88f47da583c481c874f0426e7d1a1e.zip
opie-9e9a216efd88f47da583c481c874f0426e7d1a1e.tar.gz
opie-9e9a216efd88f47da583c481c874f0426e7d1a1e.tar.bz2
added bmp support
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/impl/dir/dir_lister.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp b/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp
index 0a5cff4..16758d7 100644
--- a/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp
+++ b/noncore/graphics/opie-eye/impl/dir/dir_lister.cpp
@@ -55,32 +55,33 @@ QString Dir_DirLister::currentPath()const {
QStringList Dir_DirLister::folders()const {
return m_currentDir.entryList( QDir::Dirs );
}
QStringList Dir_DirLister::files()const {
if ( m_allFiles )
return m_currentDir.entryList( QDir::Files );
else {
QStringList out;
QStringList list = m_currentDir.entryList( QDir::Files | QDir::Readable );
for (QStringList::Iterator it = list.begin(); it != list.end();++it ) {
QFileInfo inf( *it );
QString ext = inf.extension(false).lower();
if( ext == QString::fromLatin1("jpg") ||
ext == QString::fromLatin1("jpeg" ) ||
ext == QString::fromLatin1("png" ) ||
+ ext == QString::fromLatin1("bmp" ) ||
ext == QString::fromLatin1("gif" ) )
out.append( *it );
}
return out;
}
}
void Dir_DirLister::deleteImage( const QString& fl) {
QFile::remove( fl );
}
void Dir_DirLister::thumbNail( const QString& str, int w, int h) {
SlaveMaster::self()->thumbNail( str, w, h );
}
QImage Dir_DirLister::image( const QString& str, Factor f, int m) {