Doc: Fix incorrect mentioning of read*() methods in QSaveFile
QSaveFile can only be used with WriteOnly. Calling any read method will print a runtime warning: QIODevice::read (QSaveFile): WriteOnly device Change-Id: Id721e4e1cba4b81c5504e3eff66420d363436010 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 439654cbd19b5a9bcc60cb9f82e84bab4fc562ab) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
51c8dbabab
commit
552195792d
@ -57,8 +57,8 @@ QSaveFilePrivate::~QSaveFilePrivate()
|
||||
an error happened, and will discard the temporary file in commit().
|
||||
|
||||
Much like with QFile, the file is opened with open(). Data is usually read
|
||||
and written using QDataStream or QTextStream, but you can also call the
|
||||
QIODevice-inherited functions read(), readLine(), readAll(), write().
|
||||
and written using QDataStream or QTextStream, but you can also directly call
|
||||
\l write().
|
||||
|
||||
Unlike QFile, calling close() is not allowed. commit() replaces it. If commit()
|
||||
was not called and the QSaveFile instance is destroyed, the temporary file is
|
||||
|
Loading…
x
Reference in New Issue
Block a user