Add feature to KDevelop::ProblemModel for show/hide problems source
Summary:
The patch goal is providing simple mechanism to show/hide problems source in the Problems View. Most of current problems detectors (cppcheck, vera++, clang-tidy) produces problems which have only one type of source. This leads to displaying "Source" column with single value which doesn't have any sense and produce unneeded screen space usage. Therefore by default this feature is disabled and enabled only for models with different-sources problems like standard KDevelop::ProblemReporterModel (lexical/syntax/to-do/etc parsing).
ProblemReporter, NEW=OLD behavior (source is displayed):
Cppcheck, OLD behavior (source is displayed):
Cppcheck, NEW behavior (source is not displayed):
Test Plan: Tested on master branch
Reviewers: KDevelop, kfunk
Reviewed By: KDevelop, kfunk
Subscribers: kfunk, kdevelop-devel
Differential Revision: https://phabricator.kde.org/D4834