QFileDialog in Qt 5.9 has better support for mimetype filters and
introduces the QFileDialog::selectedMimeTypeFilter() method .
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.