Skip to content

File property editor/output dialogs: unbreak file picker dialog filters

Friedrich W. H. Kossebau requested to merge work/kossebau/setnamefilter into master

QFileDialog requires a different syntax for the filter strings than KUrlRequester::setFilter.

This patch introduces a new intermediate format class FileFilters from which both filter syntax can be generated as needed.

Looked at the code to port away from recently deprecated KUrlRequester::setFilter, and found that actually a lot of places still use the KDE filter style, which no longer is supported, at least by Qt classes like QFileDialog.

Here only fixed the filter strings which also end up with KUrlRequester, given that was my scope of work I planned to do.

Someone else(tm) needs to fix also all the other places which still use "pattern|Name". Starting with the "Open..." and "Save as..." file pickers... :)

Merge request reports