Skip to content
Snippets Groups Projects
Commit 34f82b8a authored by Elvis Angelaccio's avatar Elvis Angelaccio Committed by David Faure
Browse files

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: default avatarDavid Faure <david.faure@kdab.com>
parent bc80cef1
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment