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

Naohiro KORIYAMA nkoriyama at gmail.com
Fri Jun 15 07:38:58 CEST 2012


Recently, "Qt: PLTreeView: Fix name encoding in the tooltip" was
committed, but the title (name) in the tooltip is not correctly
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,

nkoriyama at gmail.com

More information about the vlc-devel mailing list