KTar + KTempFile + QFilePrivate::openExternalFile

David Faure faure at kde.org
Mon Sep 19 15:28:56 BST 2005


On Monday 19 September 2005 15:45, Sascha Cunz wrote:
> Am Montag 19 September 2005 01:20 schrieb David Faure:
> > On Saturday 17 September 2005 10:53, Sascha Cunz wrote:
> > > Though, Qt3 docs says too, that calling QFile::close() after calling
> > > QFile::open(FILE*, OpenMode) does nothing but flush the file.
> > >
> > > All i wanted to say is, that the comment in KTar that says "File has to
> > > be closed to be used for KArchive::setDevice(QIODevice*)" is plain wrong.
> > > Because it ain't closed according to Qt-Docs.
> >
> > It's closed in the sense that isClosed() is true and than open() will work,
> > that's all that matters as far as that comment goes.
> 
> Well, then the comment should be changed. Anyone new to it looking into the 
> source and comparing it to the docs should conclude that there's something 
> wrong.

I disagree. To me "calling QFile::close" is exactly "closing the file".
What happens at the underlying level doesn't matter.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list