qt5base-lts/tests/auto/widgets/dialogs/qfiledialog
Elvis Angelaccio 34f82b8abc Improve mime type filters in QFileDialog
This patch improves the handling of mime type filters in QFileDialog.

The main change is in selectMimeTypeFilter(), which was just falling back
unconditionally on selectNameFilter(). Instead, mime type filters should
have an higher priority than name filters.

This patch also adds a new selectedMimeTypeFilter() method, which is used in the unit test.

Change-Id: Ice8bb08f5ff46e4a942d539f6001424eca878f74
Reviewed-by: David Faure <david.faure@kdab.com>
2017-01-06 16:27:41 +00:00
..
resources Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
qfiledialog.pro QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
tst_qfiledialog.cpp Improve mime type filters in QFileDialog 2017-01-06 16:27:41 +00:00