QString TSReader::readContents() { STRING(byte); STRING(value); QString result; while (!atEnd()) { readNext(); if (isEndElement()) { break; } else if (isCharacters()) { result += text(); } else if (elementStarts(strbyte)) { // <byte value="..."> result += byteValue(attributes().value(strvalue).toString()); readNext(); if (!isEndElement()) { handleError(); break; } } else { handleError(); break; } } //qDebug() << "TEXT: " << result; return result; }
void ExtendedSurface::extended_surface_update_generic_property(Resource *resource, const QString &name, struct wl_array *value) { Q_UNUSED(resource); QVariant variantValue; QByteArray byteValue((const char*)value->data, value->size); QDataStream ds(&byteValue, QIODevice::ReadOnly); ds >> variantValue; setWindowPropertyImpl(name,variantValue); }