add an explicity conversion to utf8
svn path=/trunk/KDE/kdebase/runtime/; revision=1206671
This commit is contained in:
parent
feaa077f5c
commit
ad61d813f7
@ -128,6 +128,11 @@ QString ByteArrayPrototype::toLatin1String() const
|
||||
return QString::fromLatin1(*thisByteArray());
|
||||
}
|
||||
|
||||
QString ByteArrayPrototype::toUtf8() const
|
||||
{
|
||||
return QString::fromUtf8(*thisByteArray());
|
||||
}
|
||||
|
||||
//! [2]
|
||||
QScriptValue ByteArrayPrototype::valueOf() const
|
||||
{
|
||||
|
@ -69,6 +69,7 @@ public slots:
|
||||
QByteArray trimmed() const;
|
||||
void truncate(int pos);
|
||||
QString toLatin1String() const;
|
||||
QString toUtf8() const;
|
||||
QScriptValue valueOf() const;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user