! \internal Returns the unicode string representing \a number as subscript. This is used to build unicode fractions in \ref unicodeFraction. */
| 6983 | fractions in \ref unicodeFraction. |
| 6984 | */ |
| 6985 | QString QCPAxisTickerPi::unicodeSubscript(int number) const |
| 6986 | { |
| 6987 | if (number == 0) |
| 6988 | return QString(QChar(0x2080)); |
| 6989 | |
| 6990 | QString result; |
| 6991 | while (number > 0) |
| 6992 | { |
| 6993 | result.prepend(QChar(0x2080+number%10)); |
| 6994 | number /= 10; |
| 6995 | } |
| 6996 | return result; |
| 6997 | } |
| 6998 | /* end of 'src/axis/axistickerpi.cpp' */ |
| 6999 | |
| 7000 |
nothing calls this directly
no outgoing calls
no test coverage detected