! \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. */
| 9465 | haven't changed and cached labels may be used. |
| 9466 | */ |
| 9467 | QByteArray 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 |