[kstyle] Implement application unpolish to delete ShadowHelper

Authored by graesslin on Nov 3 2016, 9:55 AM.

Description

[kstyle] Implement application unpolish to delete ShadowHelper

Summary:
Another change mostly for KWin (Wayland compositor). KWin destroys it's
internal Wayland connection prior to the QStyle getting destroyed. As
the ShadowHelper initialized Wayland objects those would be destroyed
after the connection is destroyed. With latest Wayland library this
would cause a crash.

Thus unpolish is implemented in the style and deletes the ShadowHelper.
KWin can on tear down invoke the unpolish and thus make sure it doesn't
crash.

CCBUG: 372001

Reviewers: Plasma, broulik, hpereiradacosta

Subscribers: plasma-devel

Tags: Plasma

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