Resize top bar in fullscreen view mode on toggling sidebar

Authored by muhlenpfordt on Jan 31 2018, 7:40 AM.

Description

Resize top bar in fullscreen view mode on toggling sidebar

Summary:
When viewing an image in fullscreen mode and pressing F4 to
toggle the sidebar, the toolbar at the top does not resize.
The buttons on the right side are not visible while sidebar shows.
In browse mode KToolBar is used with a standard layout where this
problem does not appear. Since the toolbar in view mode overlaps the
image view a standard layout is not usable here which would send
resize events automatically.
This patch adds a resize Eventlistener to adjust toolbar width.

BUG: 387784

Test Plan:

  1. Open gwenview in fullscreen view mode
  2. Toggle sidebar (F4)

-> The top toolbar should resize according to image view width

Checked to work properly on a second monitor.

Reviewers: rkflx, ngraham

Reviewed By: rkflx

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

Details

Committed
muhlenpfordtFeb 5 2018, 9:13 AM
Reviewer
rkflx
Differential Revision
D10248: Resize top bar in fullscreen view mode on toggling sidebar
Parents
R260:c1262d57b253: GIT_SILENT Upgrade KDE Applications version to 17.12.2.
Branches
Unknown
Tags
Unknown
References
tag: v17.12.2