From 13f2dfff7d7f68f2ca32151c0c0f306b62993e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Thu, 22 Dec 2022 10:30:06 +0100 Subject: [PATCH] Doc: Replace QTemporaryFile with QSaveFile for QFileDevice motivation QTemporaryFile is derived from QFile, so it's not a reason why QFileDevice should exist. Instead, mention QSaveFile. Change-Id: I1de3a32746a313ec57323f3f8ae42e326f11d147 Reviewed-by: David Faure (cherry picked from commit c9d9b43b10509020be706629060f83fa3091c4c8) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/io/qfiledevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/corelib/io/qfiledevice.cpp b/src/corelib/io/qfiledevice.cpp index c83ec227cc6..ee8e1b89269 100644 --- a/src/corelib/io/qfiledevice.cpp +++ b/src/corelib/io/qfiledevice.cpp @@ -127,10 +127,10 @@ void QFileDevicePrivate::setError(QFileDevice::FileError err, int errNum) QFileDevice is the base class for I/O devices that can read and write text and binary files and \l{The Qt Resource System}{resources}. QFile offers the main functionality, QFileDevice serves as a base class for sharing functionality with other file devices such - as QTemporaryFile, by providing all the operations that can be done on files that have - been opened by QFile or QTemporaryFile. + as QSaveFile, by providing all the operations that can be done on files that have + been opened by QFile or QSaveFile. - \sa QFile, QTemporaryFile + \sa QFile, QSaveFile */ /*!