Skip to content

Add KUrlRequester::nameFilters, deprecate KUrlRequester::filter

Friedrich W. H. Kossebau requested to merge work/kossebau/setnamefilters into kf5

For consistency with QFileDialog API and better naming given there are 2 kinds of filters supported, by name and by MIME type.

Motivation comes from having seen people troubled when switching between the Qt & KF APIs, and just saw this once more.

Similar patches to be done for other KIO widgets if people agree alignment with Qt API would be good to have.

How are forward ports to KF6 done with deprecated API now? Given people might use the newly deprecated API also in their Qt6/KF6 work code, just removing the deprecated API on forward porting this patch will break their code. I could imagine one would just do a normal unversioned deprecation in KF6, and just remove all deprecated API on the next bump to 2.401?

BUG: 369542

@meven @vkrause @sitter @nicolasfella @alex

Edited by Friedrich W. H. Kossebau

Merge request reports