https://bugs.kde.org/show_bug.cgi?id=369542
Bug ID: 369542 Summary: Anomaly: KUrlRequester::setFilter() still needs a KDE format filter string Product: frameworks-kio Version: unspecified Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: wishlist Priority: NOR Component: general Assignee: fa...@kde.org Reporter: j...@keelhaul.me.uk CC: kdelibs-b...@kde.org KFileDialog is now deprecated in favour of QFileDialog, which takes a Qt format filter string ("description (*.ext);;"). However, the only way to set a filter on a KUrlRequester is by using KUrlRequester:setFilter(), which still requires a KDE format filter string ("*.ext|description\n"). This appears to be the only place within Frameworks libraries (excepting kdelibs4support) where the KDE filter string is still used. As well as being an anomaly, this is a problem in the case where an application may use both QFileDialog and KUrlRequester, because it is not possible to share the same filter strings between both. This is a source of duplication and possible out-of-sync errors. Changing KUrlRequester::setFilter() to take a Qt format filter string would be an incompatible API change, unless it could be reliably autodetected. One possible option to fix this would be to deprecate KUrlRequester::setFilter() and add KUrlRequester::setNameFilter() analogous to QFileDialog::setNameFilter, taking a Qt format filter string. Reproducible: Always -- You are receiving this mail because: You are watching all bug changes.