! \internal Returns the unicode string representing \a number as subscript. This is used to build unicode fractions in \ref unicodeFraction. */
| 7674 | fractions in \ref unicodeFraction. |
| 7675 | */ |
| 7676 | QString QCPAxisTickerPi::unicodeSubscript(int number) const |
| 7677 | { |
| 7678 | if (number == 0) |
| 7679 | return QString(QChar(0x2080)); |
| 7680 | |
| 7681 | QString result; |
| 7682 | while (number > 0) |
| 7683 | { |
| 7684 | result.prepend(QChar(0x2080+number%10)); |
| 7685 | number /= 10; |
| 7686 | } |
| 7687 | return result; |
| 7688 | } |
| 7689 | /* end of 'src/axis/axistickerpi.cpp' */ |
| 7690 | |
| 7691 |