qt6-bb10/tests/auto/corelib
Ryan Chu 7a4e5e7433 Make Qt aware of symlinks and shortcuts on Windows
Qt has traditionally considered Windows shortcut files equivalent to
symlinks on Unix file systems. Because of NTFS symlinks, the
interpretation of shotcut files as symlinks is confusing.

In this change, QFileInfo treats shortcut (.lnk) files as regular files
but can follow the pointed object.

In addition, QFileInfo introduces a more comprehensive file type. So
that applications can make well-informed decisions about how to treat a
file system entry.

Based on the implementation of QFileInfo::type(), two inline helper
functions are introduced to QFileInfo.
1. isSymbolicLink, returns true if it points to a symbolic link.
2. isShortcut, returns true if it points to a shortcut.

[ChangeLog][QtCore][QFileInfo] Introduce QFileInfo::type() to replace
the isSymLink method.

Task-number: QTBUG-75869
Change-Id: Icc0dd52f9ad0ea50b0265d77ee0d0a3d25054e39
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2019-08-16 23:25:33 +02:00
..
animation unblacklist passing tests 2019-07-08 11:01:42 +00:00
codecs Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
global Conditionally disable parts of the tests testing the deprecated APIs 2019-08-01 13:51:18 +02:00
io Make Qt aware of symlinks and shortcuts on Windows 2019-08-16 23:25:33 +02:00
itemmodels test: migrate QItemSelectionModel test to QRegularExpression 2019-06-10 19:29:44 +00:00
kernel QTestLib: Introduce initMain() to run in main before qApp exists 2019-08-13 19:07:05 +02:00
mimetypes Remove handling of missing Q_COMPILER_RVALUE_REFS 2019-05-01 20:24:45 +00:00
plugin Merge remote-tracking branch 'origin/5.13' into dev 2019-07-05 15:37:50 +02:00
serialization Fix removal of QJsonObject properties when assigning undefined 2019-07-30 11:08:24 +02:00
statemachine test: migrate QStateMachine test to QRegularExpression 2019-06-10 19:23:42 +00:00
text Deprecate QStringViewLiteral 2019-08-10 22:13:49 +02:00
thread Remove the remaining usages of deprecated APIs of qtbase 2019-08-01 06:48:27 +02:00
time unblacklist passing tests 2019-07-08 11:01:42 +00:00
tools Merge remote-tracking branch 'origin/5.13' into dev 2019-08-13 09:46:17 +02:00
corelib.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00