[vlc-devel] [PATCH] Qt: PLTreeView: Fix name encoding in the tooltip

Naohiro KORIYAMA nkoriyama at gmail.com
Fri Jun 15 07:52:24 CEST 2012


Oops, patch was not attached...

2012/6/15 Naohiro KORIYAMA <nkoriyama at gmail.com>:
> Hello,
>
> Recently, "Qt: PLTreeView: Fix name encoding in the tooltip" was
> committed, but the title (name) in the tooltip is not correctly
> decoded.
> Because QString converts the const char * data into Unicode using the
> fromAscii() function.
> There are two approaches: using QTextCodec::setCodecForCStrings() or
> using QString::fromUtf8().
> I use QString::fromUtf8(), because using setCodecForCStrings affects
> all the codec used by QString.
>
> Best regards,
>
> --
> KORIYAMA, Naohiro
> nkoriyama at gmail.com



-- 
KORIYAMA, Naohiro
nkoriyama at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0025-Qt-PLTreeView-Fix-name-encoding-in-the-tooltip.patch
Type: application/octet-stream
Size: 1084 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120615/4db48507/attachment.obj>


More information about the vlc-devel mailing list