[KPhotoAlbum] Fix: update info box when size becomes available

Jesper K. Pedersen blackie at blackie.dk
Mon Nov 27 07:27:01 GMT 2006


Your patch result in some strange resizing of the info box (it will stand and 
resize 5 times after shown)

Please have a look into that, and send me a new patch.

Despite I agree with your patch should result in the info box not being shown 
before needed, it still seems to be that the text is updated to early. Did 
you try and disable the image cache? eventually try to run it under valgrind 
to really slow things down.

Cheers
jesper.

On Monday 20 November 2006 11:48, Henner Zeller wrote:
| Hi,
|
| looking closer into this, I fixed something which I always disliked:
| the info box is updated already with the new image data _before_ the
| new image is displayed. This is very irritating esp. if you switch
| between two images to compare them. With the attached patch (replaces
| the previous one), the info box is updated once the image is ready.
| This of course fixes the original issue (no display size known at
| first display of the info box) as well.
|
| (sorry, I don't mean to delay the release, feel free to ignore..)
|
| cheers,
|   -henner
|
| On 11/19/06, Henner Zeller <h.zeller at acm.org> wrote:
| > Hi,
| > Right now, when the image size is -1x-1 in the image db, the image
| > size is not shown in the image viewer the first time the image is
| > displayed, since the info box is not updated once the image is loaded.
| >
| > An invalid size might be in the image database if the image has never
| > been loaded, e.g. because the thumbnail view got the information
| > directly from saved thumbnails.
| >
| > Fix: Connect the possibleChange() signal with the updateInfoBox() to
| > get to know new information becoming available once the image is
| > loaded. Attached.
| >
| > -h
| >
| > --
| > Henner Zeller | h.zeller at acm.org
| > Bücher kaufen und freie Software fördern | http://bookzilla.de

-- 
Having trouble finding a given image in your collection containing
thousands of images?

http://www.kphotoalbum.org might be the answer.



More information about the Kphotoalbum mailing list