D7527: Add mimetype filtering capabilities to KUrlCompletion
Milian Wolff
noreply at phabricator.kde.org
Thu Aug 24 20:43:33 UTC 2017
mwolff created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.
REVISION SUMMARY
This feature already exists in QFileDialog, but is so far missing
from KCompletion. This in turn makes KUrlRequester's mimetype filter
look broken, as it "only" works for the dialog but not the lineedit!
Setting a mimetype filter list will exclude any files with a mime-
type name that is not contained in the filter list. Note that
directories are never matched against the mimetype filter.
With this patch applied, the filter is also properly applied via
KCompletion to the lineedit of a KUrlRequester.
REPOSITORY
R241 KIO
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D7527
AFFECTED FILES
autotests/kurlcompletiontest.cpp
src/widgets/kurlcompletion.cpp
src/widgets/kurlcompletion.h
src/widgets/kurlrequester.cpp
tests/kurlrequestertest_gui.cpp
To: mwolff, dfaure
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170824/7e3af2de/attachment.html>
More information about the Kde-frameworks-devel
mailing list