[KDirOperator] Middle-elide labels that are too long to fit
ClosedPublic

Authored by ngraham on Aug 16 2019, 1:22 PM.

Details

Summary

Right now too-long labels get right-elided, which among other minor issues, causes
their filename extentions to not be visible. Dolphin is moving to middle-eliding
labels instead (See D19471), so this patch implements the same behavior for KDirOperator
so the file dialogs behave the same way.

CCBUG: 404955

Test Plan

See the Test Plan in D19471; same deal

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham created this revision.Aug 16 2019, 1:22 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 16 2019, 1:22 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
ngraham requested review of this revision.Aug 16 2019, 1:22 PM
elvisangelaccio accepted this revision.Aug 24 2019, 4:28 PM
This revision is now accepted and ready to land.Aug 24 2019, 4:28 PM
This revision was automatically updated to reflect the committed changes.