Fix crash when docks are stacked
Summary:
In case of stacking, QMainWindow tends to delete the dock widget earlier
than we expect and behind our back, so better have a QPointer internally
to avoid dangling pointers.
Reviewers: bensi, franckarrecot, mlaurent
Differential Revision: https://phabricator.kde.org/D1316