Diffusion KIO f0668888660f

[FileWidget] Replace "Filter:" with "File type:" when saving with a limited…

Authored by ngraham on May 2 2019, 2:43 PM.

Description

[FileWidget] Replace "Filter:" with "File type:" when saving with a limited list of mimetypes

Summary:
The Filter combobox currently always has the label "Filter:" This is appropriate in most
cases, but becomes inaccurate when saving with a limited list of mimetypes. In this case,
the combobox loses its text field and becomes a file type chooser rather than a filter.

This patch changes the label to "File type:" for that use case.

BUG: 79903
FIXED-IN: 5.59

Test Plan:
Opening a file: no changes

Saving a file with no mimetype filter: no changes

Saving a file with a limited list of mimetypes: label is changed

Reviewers: VDG, elvisangelaccio, GB_2

Reviewed By: elvisangelaccio

Subscribers: pino, apol, kde-frameworks-devel

Tags: Frameworks

Maniphest Tasks: T8552

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