Implement support for selected mime type filters

Authored by rjvbb on Nov 29 2017, 8:50 PM.

Description

Implement support for selected mime type filters

Summary:
QFileDialog in Qt 5.9 has better support for mimetype filters and
introduces the QFileDialog::selectedMimeTypeFilter() method [1].

This change implements the required functions on the Plasma side. We
cannot depend on Qt 5.9 yet, so the unit test is compiled only when
building against Qt 5.9.
The manual test is also expanded.

[1]: http://code.qt.io/cgit/qt/qtbase.git/commit/?h=5.9&id=34f82b8abcb279542b6350e70609c549e39caafb

Test Plan:
New unit tests pass when building against Qt >= 5.9.
Manual test also works as expected.

Reviewers: Plasma, dfaure

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D5446
Cherry-picked from plasma-integration: 0a6be721e4e35b54c2fba6a59243eea3c5d912d4
Committed from host : Portia.local