Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
codec = createForMib(mib);
- // Qt 3 used 1000 (mib for UCS2) as its identifier for the utf16 codec. Map
- // this correctly for compatibility.
- if (!codec && mib == 1000)
- return codecForMib(1015);
-
if (codec && cache)
cache->insert(key, codec);
return codec;
}
case QVariant::Url: {
QByteArray ba = data.toByteArray();
- // Qt 3.x will send text/uri-list with a trailing
- // null-terminator (that is *not* sent for any other
- // text/* mime-type), so chop it off
- if (ba.endsWith('\0'))
- ba.chop(1);
-
QList<QByteArray> urls = ba.split('\n');
QList<QVariant> list;
for (int i = 0; i < urls.size(); ++i) {