[App Style KCM] Hide preview buttons, if previewers are not found

Authored by gikari on Jan 19 2020, 4:51 PM.

Description

[App Style KCM] Hide preview buttons, if previewers are not found

Summary:
BUG: 416343
FIXED-IN: 5.18.0

Test Plan:

  1. Open GTK page of Application Style KCM, the preview buttons should be present
  2. Delete usr/lib/libexec/gtk_preview file or rename it to something else
  3. Reopen GTK page of KCM - the GTK2 preview button should disappear
  4. Delete usr/lib/libexec/gtk3_preview file or rename it to something else
  5. Reopen GTK page of KCM - the GTK3 preview button should disappear too
  6. Bring back the deleted/renamed files
  7. Reopen KCM, the buttons should be present

Subscribers: plasma-devel

Tags: Plasma

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