More robust saving of output pane button visibility setting.

Explicitly manage visibility state instead of relying on
QWidget::isVisible which might lead to problems at shutdown.

Change-Id: Ic0c2f4e4f83c4241aea2ad28e533f5148cc4606e
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>