Diffstat (limited to 'noncore/graphics/opie-eye/slave/png_slave.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/slave/png_slave.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/slave/png_slave.cpp b/noncore/graphics/opie-eye/slave/png_slave.cpp index 72b93cc..86e1cdc 100644 --- a/noncore/graphics/opie-eye/slave/png_slave.cpp +++ b/noncore/graphics/opie-eye/slave/png_slave.cpp | |||
@@ -186,25 +186,26 @@ PNGSlave::PNGSlave() | |||
186 | : SlaveInterface("png") | 186 | : SlaveInterface("png") |
187 | { | 187 | { |
188 | } | 188 | } |
189 | PNGSlave::~PNGSlave() { | 189 | PNGSlave::~PNGSlave() { |
190 | } | 190 | } |
191 | QString PNGSlave::iconViewName( const QString& path) { | 191 | QString PNGSlave::iconViewName( const QString& path) { |
192 | QString str; | 192 | QString str; |
193 | read_comment( path, false, str ); | 193 | read_comment( path, false, str ); |
194 | return str; | 194 | return str; |
195 | } | 195 | } |
196 | 196 | ||
197 | QString PNGSlave::fullImageInfo( const QString& path) { | 197 | QString PNGSlave::fullImageInfo( const QString& path) { |
198 | QString str; | 198 | QString str = "<qt>"; |
199 | read_comment( path, true, str ); | 199 | read_comment( path, true, str ); |
200 | str += "</qt>"; | ||
200 | return str; | 201 | return str; |
201 | } | 202 | } |
202 | 203 | ||
203 | 204 | ||
204 | QPixmap PNGSlave::pixmap( const QString& path, int width, int height) { | 205 | QPixmap PNGSlave::pixmap( const QString& path, int width, int height) { |
205 | QImage img; img.load( path ); | 206 | QImage img; img.load( path ); |
206 | if ( img.isNull() ) | 207 | if ( img.isNull() ) |
207 | return QPixmap(); | 208 | return QPixmap(); |
208 | else | 209 | else |
209 | return ThumbNailTool::scaleImage( img, width,height ); | 210 | return ThumbNailTool::scaleImage( img, width,height ); |
210 | } | 211 | } |