summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -39,58 +39,59 @@ QString Dir_DirLister::defaultPath()const {
}
QString Dir_DirLister::setStartPath( const QString& path ) {
m_currentDir.cd( path );
if (!m_currentDir.exists() )
m_currentDir.cd(defaultPath());
return m_currentDir.absPath();
}
QString Dir_DirLister::currentPath()const {
return m_currentDir.absPath();
}
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) {
return SlaveMaster::self()->image( str, f, m );
}
void Dir_DirLister::imageInfo( const QString& str) {
SlaveMaster::self()->thumbInfo( str );
}
void Dir_DirLister::fullImageInfo( const QString& str) {
SlaveMaster::self()->imageInfo( str );
}