qt6-bb10/tests/auto/gui
Ahmad Samir 83e5d74864 QFileSystemModel: respect dir filters
Given a dir A that has some files and a subdir B, when a model is set to
only show files, setting the root path to A, the filters are initially
respected. Setting the root path to B then back to A, the filters would
be ignored and B would be visible in the model.

Traversing the path elements in node() led to dir B getting added to
the bypassFilters hash table, which made filtersAcceptNode() bypass the
filters.

I couldn't find a commit explaining the logic behind using bypassFilters
(the trail goes cold at the 'Qt 4.5' mega commit). The only clue I found
was the "// always accept drives" comment in the code, which hints at
this being useful only on Windows(?).

Fixes: QTBUG-74471
Pick-to: 6.7 6.6 6.5
Change-Id: Icb9055524a28990c591e924634a63e29a49835aa
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-01-26 20:19:23 +00:00
..
image Copy color table in QImage::transform paint path 2023-12-14 23:35:14 +01:00
itemmodels QFileSystemModel: respect dir filters 2024-01-26 20:19:23 +00:00
kernel tests: skip tst_QGuiApplication::topLevelAt() on Wayland 2024-01-17 17:44:24 +01:00
math3d Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
painting QRadialGradient: Fix undefined behavior 2024-01-08 15:00:16 +02:00
platform CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopengl CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopenglconfig CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qvulkan Skip QVulkan autotests on Android 2023-10-30 12:43:14 +02:00
rhi rhi: Add an autotest for multiview 2024-01-15 17:48:45 +01:00
text Avoid detection of heading in tst_QTextMarkdownImporter::thematicBreaks 2024-01-24 14:02:33 -07:00
util Fix digit grouping: m_grouping_top doesn't mean what I thought it did 2023-08-08 19:44:56 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00