Fix encoding of size tooltip in radial map
ClosedPublic

Authored by cfeck on Sep 17 2019, 1:11 AM.

Details

Summary

class File (see fileTree.h) internally stores filenames in 8 bit encoding.
The size tooltip uses the same API, but does not correctly encode the tooltip to 8 bit.
It uses UTF-8, while the system might have a different local encoding.

Changing toUtf8() to QFile::encodeName() fixes this.

BUG: 411243
FIXED-IN: 19.08.2

Diff Detail

Repository
R352 Filelight
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
cfeck created this revision.Sep 17 2019, 1:11 AM
Restricted Application added a subscriber: kde-utils-devel. · View Herald TranscriptSep 17 2019, 1:11 AM
cfeck requested review of this revision.Sep 17 2019, 1:11 AM
aacid accepted this revision.Sep 18 2019, 10:05 PM
This revision is now accepted and ready to land.Sep 18 2019, 10:05 PM
This revision was automatically updated to reflect the committed changes.