qt5base-lts/tests/auto/gui/itemmodels
Dongmei Wang e253a30238 QFileSystemModel fails to locate a host from root's visible children
In QFileSystemModel, in some cases the hostname in a UNC path is
converted to lower case and stored in the root node's visibleChildren.
When QFileSystemModel sets the UNC path as the root path, it tries to
get the row number for the host, but it didn't convert the hostname to
lower case before getting the row number, which resulted in the host
not found in the root node's visible children. As a result, it returns
-1, an invalid row number. Change the behavior to find the node for the
host using the host name case-insensitive and then get the row number.

Fixes: QTBUG-71701
Pick-to: 5.15 6.0 6.1
Change-Id: Ib95c7b6d2bc22fd82f2789b7004b6fc82dfcb13b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2021-05-20 15:02:38 +00:00
..
qfilesystemmodel QFileSystemModel fails to locate a host from root's visible children 2021-05-20 15:02:38 +00:00
qstandarditem Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstandarditemmodel Fix QStandardItemModel signals on takeChild 2021-05-11 18:55:09 +01:00
CMakeLists.txt Fix tests to build in a no-widgets configuration 2020-09-15 15:55:47 +02:00