summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore 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 {
55QStringList Dir_DirLister::folders()const { 55QStringList Dir_DirLister::folders()const {
56 return m_currentDir.entryList( QDir::Dirs ); 56 return m_currentDir.entryList( QDir::Dirs );
57} 57}
58 58
59QStringList Dir_DirLister::files()const { 59QStringList Dir_DirLister::files()const {
60 if ( m_allFiles ) 60 if ( m_allFiles )
61 return m_currentDir.entryList( QDir::Files ); 61 return m_currentDir.entryList( QDir::Files );
62 else { 62 else {
63 QStringList out; 63 QStringList out;
64 QStringList list = m_currentDir.entryList( QDir::Files | QDir::Readable ); 64 QStringList list = m_currentDir.entryList( QDir::Files | QDir::Readable );
65 for (QStringList::Iterator it = list.begin(); it != list.end();++it ) { 65 for (QStringList::Iterator it = list.begin(); it != list.end();++it ) {
66 QFileInfo inf( *it ); 66 QFileInfo inf( *it );
67 QString ext = inf.extension(false).lower(); 67 QString ext = inf.extension(false).lower();
68 if( ext == QString::fromLatin1("jpg") || 68 if( ext == QString::fromLatin1("jpg") ||
69 ext == QString::fromLatin1("jpeg" ) || 69 ext == QString::fromLatin1("jpeg" ) ||
70 ext == QString::fromLatin1("png" ) || 70 ext == QString::fromLatin1("png" ) ||
71 ext == QString::fromLatin1("bmp" ) ||
71 ext == QString::fromLatin1("gif" ) ) 72 ext == QString::fromLatin1("gif" ) )
72 out.append( *it ); 73 out.append( *it );
73 } 74 }
74 return out; 75 return out;
75 } 76 }
76} 77}
77 78
78void Dir_DirLister::deleteImage( const QString& fl) { 79void Dir_DirLister::deleteImage( const QString& fl) {
79 QFile::remove( fl ); 80 QFile::remove( fl );
80} 81}
81 82
82void Dir_DirLister::thumbNail( const QString& str, int w, int h) { 83void Dir_DirLister::thumbNail( const QString& str, int w, int h) {
83 SlaveMaster::self()->thumbNail( str, w, h ); 84 SlaveMaster::self()->thumbNail( str, w, h );
84} 85}
85 86
86QImage Dir_DirLister::image( const QString& str, Factor f, int m) { 87QImage Dir_DirLister::image( const QString& str, Factor f, int m) {