summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/impl/dcim/dcim_lister.cpp
Unidiff
Diffstat (limited to 'noncore/graphics/opie-eye/impl/dcim/dcim_lister.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/impl/dcim/dcim_lister.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/impl/dcim/dcim_lister.cpp b/noncore/graphics/opie-eye/impl/dcim/dcim_lister.cpp
index 3c3d702..147eb9c 100644
--- a/noncore/graphics/opie-eye/impl/dcim/dcim_lister.cpp
+++ b/noncore/graphics/opie-eye/impl/dcim/dcim_lister.cpp
@@ -143,25 +143,25 @@ QStringList DCIM_DirLister::findAlbums()const {
143 lst.remove( ".." ); 143 lst.remove( ".." );
144 144
145 return lst; 145 return lst;
146} 146}
147 147
148QStringList DCIM_DirLister::findImages()const { 148QStringList DCIM_DirLister::findImages()const {
149 return QDir( m_path ).entryList("*.jpg *.jpeg *.png", QDir::Files ); 149 return QDir( m_path ).entryList("*.jpg *.jpeg *.png", QDir::Files );
150} 150}
151 151
152void DCIM_DirLister::deleteImage( const QString& fl ) { 152void DCIM_DirLister::deleteImage( const QString& fl ) {
153 QFileInfo inf( fl ); 153 QFileInfo inf( fl );
154 QFile::remove( fl ); 154 QFile::remove( fl );
155 QFile::remove( inf.dirPath ()+"/preview"+ 155 QFile::remove( inf.dirPath ()+"/preview/"+
156 inf.fileName() ); 156 inf.fileName() );
157} 157}
158 158
159void DCIM_DirLister::thumbNail( const QString& _str, int w, int h ) { 159void DCIM_DirLister::thumbNail( const QString& _str, int w, int h ) {
160 QFileInfo inf( _str ); 160 QFileInfo inf( _str );
161 QString str = QFileInfo( inf.dirPath()+"/preview"+ inf.fileName() ).exists() ? 161 QString str = QFileInfo( inf.dirPath()+"/preview"+ inf.fileName() ).exists() ?
162 inf.dirPath()+"/preview"+ inf.fileName() : _str; 162 inf.dirPath()+"/preview"+ inf.fileName() : _str;
163 163
164 SlaveMaster::self()->thumbNail( str, w, h ); 164 SlaveMaster::self()->thumbNail( str, w, h );
165} 165}
166 166
167QImage DCIM_DirLister::image( const QString& str, Factor f, int m ) { 167QImage DCIM_DirLister::image( const QString& str, Factor f, int m ) {