summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-05-31 12:07:43 -0700
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-09-12 08:34:25 +0000
commit351b89417178aa6fdda0634adc88593c89c20897 (patch)
tree96b5fdc2115e09e15ec8a1c8853eb03a6978cafb /tests
parent7897d154ddcd03c9cb1ad2895328da11c8098c40 (diff)
QTemporaryFile: document rename() differences from QFile
We will not do a copy+delete if the destination is on another mount point (in fact, QFile uses QTemporaryFile for the latter). In my opinion, that's a misfeature in QFile, because such an operation may need to display a progress bar to the user so they won't think the application has frozen. But it's too late to change now. I don't know why QTemporaryFile is different. It might be because it was used for the atomic materialization of a file before QSaveFile existed (5.1) but I didn't research to confirm. It's still useful even in the presence of that class if the file is really temporary (meant to be removed when the QTemporaryFile is destroyed). Fixes: QTBUG-103740 Change-Id: Iba16e8ea451b444ab213fffd16f4461f3f972d8c Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 612f5cf9a1c708a18d6488f2b25d85716a899d99) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions