! \internal */
| 917 | /*! \internal |
| 918 | */ |
| 919 | QByteArray Format::borderKey() const |
| 920 | { |
| 921 | if (isEmpty()) |
| 922 | return QByteArray(); |
| 923 | |
| 924 | if (d->border_dirty) { |
| 925 | QByteArray key; |
| 926 | QDataStream stream(&key, QIODevice::WriteOnly); |
| 927 | for (int i=FormatPrivate::P_Border_STARTID; i<FormatPrivate::P_Border_ENDID; ++i) { |
| 928 | auto it = d->properties.constFind(i); |
| 929 | if (it != d->properties.constEnd()) |
| 930 | stream << i << it.value(); |
| 931 | }; |
| 932 | |
| 933 | const_cast<Format*>(this)->d->border_key = key; |
| 934 | const_cast<Format*>(this)->d->border_dirty = false; |
| 935 | } |
| 936 | |
| 937 | return d->border_key; |
| 938 | } |
| 939 | |
| 940 | /*! |
| 941 | \internal |
no test coverage detected