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

Method unicodeFraction

qcustomplot/qcustomplot.cpp:6949–6952  ·  view source on GitHub ↗

! \internal Returns the unicode string representation of the fraction given by \a numerator and \a denominator. This is the representation used in \ref fractionToString when the fraction style (\ref setFractionStyle) is \ref fsUnicodeFractions. This method doesn't use the single-character common fractions but builds each fraction from a superscript unicode number, the unicode fract

Source from the content-addressed store, hash-verified

6947 superscript unicode number, the unicode fraction character, and a subscript unicode number.
6948*/
6949QString QCPAxisTickerPi::unicodeFraction(int numerator, int denominator) const
6950{
6951 return unicodeSuperscript(numerator)+QChar(0x2044)+unicodeSubscript(denominator);
6952}
6953
6954/*! \internal
6955

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected