Diffusion KIO 1a92575c73d2

Add mimetype filtering capabilities to KUrlCompletion

Authored by mwolff on Thu, Aug 24, 8:30 PM.

Description

Add mimetype filtering capabilities to KUrlCompletion

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.

Reviewers: dfaure

Subscribers: Frameworks

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D7527