Elide labels in save bar instead of hiding them
Changes PlannedPublic

Authored by rkflx on Aug 24 2018, 10:45 PM.



After modifying an image, Gwenview displays a toolbar above the image
with options for saving. When resizing the sidebar or the window
horizontally and thus taking away space, some buttons and labels could
be hidden. In particular the Next modified image link was not
accessible anymore.

This can be solved by eliding the labels instead.

To center the whole group in the middle properly and due to deficiencies
in KSqueezedLabel the patch is a bit more complex, but should be
fairly self-contained.

Test Plan

Modify a single and multiple images, navigate around and check that all
buttons and labels in the save bar still work correctly. Resizing the
sidebar should elide all labels evenly, so even with a narrow window
size both navigation buttons should be visible at all times.


Diff Detail

R260 Gwenview
No Linters Available
No Unit Test Coverage
Build Status
Buildable 2210
Build 2228: arc lint + arc unit
rkflx created this revision.Aug 24 2018, 10:45 PM
Restricted Application added a project: Gwenview. · View Herald TranscriptAug 24 2018, 10:45 PM
rkflx requested review of this revision.Aug 24 2018, 10:45 PM
rkflx planned changes to this revision.Aug 25 2018, 8:33 AM