18 QByteArray ba(
data->data(mime));
19 QDataStream df(&ba, QIODevice::WriteOnly);
21 data->setData(mime, ba);
26 QDataStream df(&ba, QIODevice::WriteOnly);
32 QList<QPair<QString, int>> ret;
37 QDataStream df(&ba, QIODevice::ReadOnly);
40 if (!
name.isEmpty()) {
41 ret.push_back(QPair<QString, int>(
name,
index));