Thumbnails in tooltips

Simon MacMullen simon.macmullen at aspectgroup.co.uk
Tue May 28 14:13:04 BST 2002


OK. This is now nearly ready to commit. Just one last issue.

What it does is, when first showing a tooltip, it creates a tooltip with the
icon copied from the icon view. Then it starts a preview job to create a
large (256x256) preview, which it then resizes to accomodate when it
arrives.

The trouble is, this can lead to an ugly flicker if the large thumbnail
already exists. Is there a good way to find out if a preview exists already?
KIO::PreviewJob::statResultThumbnail() looks right, but it's protected.
Would it be OK to make it public?

Oh yeah, and I've hard coded the fact that the preview lives to the left of
the metadata. This is probably wrong for RTL languages (?) Can anyone point
me to how to find out if I'm in an RTL locale?

Cheers, Simon




More information about the kde-core-devel mailing list