Fwd: [PATCH] previewjob.cpp

David Faure faure at kde.org
Thu Oct 3 09:07:41 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Since QImage is getting serialized differently in Qt3.1,
the existing thumbnails show up corrupted in Konqueror."

Can anyone confirm this patch?

- ----------  Forwarded Message  ----------

Subject: [PATCH] previewjob.cpp
Date: Thursday 03 October 2002 06:20
From: Pascal Létourneau <pletourn at globetrotter.net>
To: faure at kde.org

Salut,

Du à une modification à la sérialisation de QImage dans Qt3.1, les vignettes 
enregistrées dans la cache sont corrompues.

Pascal Létourneau

Index: previewjob.cpp
===================================================================
RCS file: /home2/webcvs/mirror/kdelibs/kio/kio/previewjob.cpp,v
retrieving revision 1.33
diff -u -3 -p -r1.33 previewjob.cpp
- --- previewjob.cpp      19 Jun 2002 17:46:02 -0000      1.33
+++ previewjob.cpp      3 Oct 2002 04:13:09 -0000
@@ -445,12 +445,7 @@ void PreviewJob::slotThumbData(KIO::Job
         img.setAlphaBuffer(alpha);
         pix.convertFromImage(img);
         if (save)
- -        {
- -            QByteArray saveData;
- -            QDataStream saveStr(saveData, IO_WriteOnly);
- -            saveStr << img;
- -            saveThumbnail(saveData);
- -        }
+            img.save( d->thumbPath + d->currentItem.item->url().fileName(), "PNG" );
     }
     else
     {



- -------------------------------------------------------

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9m/rP72KcVAmwbhARAp8xAJ4lq4+ozfXZNZebMEvFFE9LvfGFQACeLexB
lhJ0VeAxwqRPUfPojltj0GY=
=lpu/
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list