qt5base-lts/tests/auto/corelib/io/qfile
Volker Hilsheimer e79979ba40 On Windows 7, fall back to SHFileOperation to avoid confirmation dialogs
Moving a file to the trash should preferably done via IFileOperation.
However, the implementation on Windows 7 ignores the operation flags
that request the shell not to show any confirmation dialogs or other UI
elements.

SHFileOperation is an old API that doesn't show any UI, but has the
limitation that it doesn't report the location of the file in the trash
after the move. So an application cannot restore the file, but the user
can do so via Explorer.

Overall, the better compromise is to not have dialogs at the expense of
not being able to report the new path. This allows us to run the unit
test on Windows 7 as well.

Change-Id: Ib8e651a69e2c6750f668b52d2a70925d156cc8ae
Fixes: QTBUG-81927
Reviewed-by: Vitaly Fanaskov <vitaly.fanaskov@qt.io>
2020-02-07 12:21:13 +01:00
..
resources
stdinprocess Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
.gitattributes
.gitignore tst_qfile: Fix execution for WinRT 2018-06-28 15:43:58 +00:00
copy-fallback.qrc
dosfile.txt
forCopying.txt
forRenaming.txt
noendofline.txt
qfile.pro Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
qfile.qrc
rename-fallback.qrc
test.pro Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
testfile.txt
testlog.txt
tst_qfile.cpp On Windows 7, fall back to SHFileOperation to avoid confirmation dialogs 2020-02-07 12:21:13 +01:00
two.dots.file