qt5base-lts/tests/auto
David Faure 0cbbba2aa5 Update shared-mime-info to the 2.1 release, adjust implementation
The spec hasn't changed, but I made the same mistake in xdgmime
(the reference implementation) and in Qt: when multiple globs match,
and the result from magic sniffing is unrelated to any of those globs,
then I used the magic result, but that's wrong, globs have priority
and one of them should be picked up.

This is now fixed in xdgmime
(https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/3)
and in the expected results in shared-mime-info
(https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/99)
which this commit is also tested against.

This change also optimizes QMimeBinaryProvider::addFileNameMatches
to have the same logic as xdgmime for glob matching:
literals > extensions > other globs
As soon as one category matches, we can stop there.
This makes no difference in the overall results, in practice.

The user bug report (against the Qt implementation, actually)
is https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
as well as https://bugs.kde.org/show_bug.cgi?id=411718

Pick-to: 6.0 5.15
Change-Id: Ia0a34080427daff43c732609443ee6df8f41447c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-01-05 18:31:54 +00:00
..
cmake Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
concurrent Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
corelib Update shared-mime-info to the 2.1 release, adjust implementation 2021-01-05 18:31:54 +00:00
dbus Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
gui QInputControl: accept surrogate category character 2021-01-05 16:24:29 +01:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
opengl Remove tst_QGL 2020-08-28 11:43:11 +02:00
other Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
printsupport Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
shared Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
sql Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
testlib Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
tools Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
widgets Fix minor errors in tests 2021-01-05 12:43:09 +01:00
xml Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
.prev_CMakeLists.txt CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
auto.pro Don't error out when configuring Qt on a headless system 2020-09-26 14:36:13 +02:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00