qt5base-lts/src
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
..
3rdparty Merge remote-tracking branch 'origin/5.14' into 5.15 2020-02-04 10:44:00 +01:00
android Android: use the correct string resources for ok and cancel 2020-02-03 15:47:57 +02:00
angle Disable debug-and-release builds for MinGW 2019-09-18 06:28:16 +00:00
concurrent QtConcurrent: fix warning about function parameters shadowing class members 2019-10-08 23:21:14 +02:00
corelib On Windows 7, fall back to SHFileOperation to avoid confirmation dialogs 2020-02-07 12:21:13 +01:00
dbus CMake: Add Qt6 forward compatible CMake API and targets 2020-01-25 18:10:26 +01:00
gui rhi: Add depth bias and slope scaled depth bias 2020-02-06 13:06:34 +01:00
network Fix symbol resolving for OPENSSL_NO_NEXPROTONEG 2020-02-05 10:41:02 +01:00
opengl Doc/QtBase: replace some 0 with \nullptr 2020-01-26 17:52:02 +01:00
openglextensions QtGui: Disable Windows on ARM64 preprocessor conflict in QtOpenGL 2019-10-21 09:14:18 -04:00
platformheaders Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-18 01:00:08 +01:00
platformsupport Suppress deprecation warnings for QFont::ForceIntegerMetrics 2020-02-03 07:08:53 +01:00
plugins Merge "Merge remote-tracking branch 'origin/5.14' into 5.15" 2020-02-06 11:38:18 +01:00
printsupport Merge remote-tracking branch 'origin/5.14' into 5.15 2020-02-04 10:44:00 +01:00
sql Merge remote-tracking branch 'origin/5.14' into 5.15 2020-02-04 10:44:00 +01:00
testlib testlib: Be more selective in choosing to show stacktraces on macOS 2020-02-06 23:42:55 +01:00
tools Merge remote-tracking branch 'origin/5.14' into 5.15 2020-02-06 11:10:34 +01:00
widgets Merge "Merge remote-tracking branch 'origin/5.14' into 5.15" 2020-02-06 11:38:18 +01:00
winmain Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
xml QStringList: use local storage in removeDuplicates() 2020-01-26 08:11:58 +00:00
src.pro MIME: Make the internal database direct content, not a Qt resource 2019-12-10 15:56:09 -08:00