! * \internal */
| 1166 | * \internal |
| 1167 | */ |
| 1168 | QByteArray Format::formatKey() const |
| 1169 | { |
| 1170 | if (isEmpty()) |
| 1171 | return QByteArray(); |
| 1172 | |
| 1173 | if (d->dirty) { |
| 1174 | QByteArray key; |
| 1175 | QDataStream stream(&key, QIODevice::WriteOnly); |
| 1176 | |
| 1177 | QMapIterator<int, QVariant> i(d->properties); |
| 1178 | while (i.hasNext()) { |
| 1179 | i.next(); |
| 1180 | stream<<i.key()<<i.value(); |
| 1181 | } |
| 1182 | |
| 1183 | d->formatKey = key; |
| 1184 | d->dirty = false; |
| 1185 | } |
| 1186 | |
| 1187 | return d->formatKey; |
| 1188 | } |
| 1189 | |
| 1190 | /*! |
| 1191 | * \internal |
no test coverage detected