[Okular-devel] md5 hash for annotation file name
Markus Grabner
grabner at icg.tugraz.at
Wed Sep 10 16:33:19 CEST 2008
Hi!
It has been discussed (http://bugs.kde.org/show_bug.cgi?id=151614) to use
a hash function to determine the name of the annotation file created by
okular. The attached patch implements this behaviour (thanks Ivo for pointing
me to QCryptographicHash - I looked for such a thing but somehow missed it).
It works nicely in several ways:
*) Annotations keep associated with the file after renaming it.
*) It also works for non-local URLs (http://...) since we don't need to care
for mapping the URL to some valid file name.
*) Annotations keep associated with the file after downloading it from the web
and opening a local copy (possibly under a different name).
Kind regards,
Markus
--
Markus Grabner - Computer Graphics and Vision
Graz University of Technology, Inffeldgasse 16a/II, 8010 Graz, Austria
Phone: +43/316/873-5041, Fax: +43/316/873-5050
WWW: http://www.icg.tugraz.at/Members/grabner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotations_md5.patch
Type: text/x-diff
Size: 1151 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20080910/7437da99/attachment.bin
More information about the Okular-devel
mailing list