MCPcopy Create free account
hub / github.com/KDE/labplot / borderKey

Method borderKey

src/3rdparty/QXlsx/source/xlsxformat.cpp:919–938  ·  view source on GitHub ↗

! \internal */

Source from the content-addressed store, hash-verified

917/*! \internal
918 */
919QByteArray 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

Callers 2

addXfFormatMethod · 0.80
readBordersMethod · 0.80

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected