Comment 17 for bug 728197

Revision history for this message
Daniel Schürmann (daschuer) wrote :

The SaveFile solution is not as easy as it seams.
glib has included a complete solution see gio/glocalfileoutputstream.c in function "handle_overwrite_open".
Qt seems to have nothing similar, see:
http://lists.qt-project.org/pipermail/development/2012-January/thread.html#1262
KDE uses KSaveFile:
http://herschel.dsf.unica.it/cgi-bin/dwww/usr/share/doc/kde/HTML/en/kdelibs-apidocs/kdecore/html/ksavefile_8cpp_source.html
It seems that glib covers additional corner cases, but the KDE solution should work for us.

Does anyone have a port to pure Qt? Or additional hints?
If not I would just copy the required files to lib/kdecore
(.. this is only a temporary solution until we have complete GIO support see Bug #918222 :-) )