MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / generateLabelParameterHash

Method generateLabelParameterHash

qcustomplot/qcustomplot.cpp:9467–9478  ·  view source on GitHub ↗

! \internal Returns a hash that allows uniquely identifying whether the label parameters have changed such that the cached labels must be refreshed (\ref clearCache). It is used in \ref draw. If the return value of this method hasn't changed since the last redraw, the respective label parameters haven't changed and cached labels may be used. */

Source from the content-addressed store, hash-verified

9465 haven't changed and cached labels may be used.
9466*/
9467QByteArray QCPAxisPainterPrivate::generateLabelParameterHash() const
9468{
9469 QByteArray result;
9470 result.append(QByteArray::number(mParentPlot->bufferDevicePixelRatio()));
9471 result.append(QByteArray::number(tickLabelRotation));
9472 result.append(QByteArray::number((int)tickLabelSide));
9473 result.append(QByteArray::number((int)substituteExponent));
9474 result.append(QByteArray::number((int)numberMultiplyCross));
9475 result.append(tickLabelColor.name().toLatin1()+QByteArray::number(tickLabelColor.alpha(), 16));
9476 result.append(tickLabelFont.toString().toLatin1());
9477 return result;
9478}
9479
9480/*! \internal
9481

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
alphaMethod · 0.80

Tested by

no test coverage detected