assert(prefix < countof(SIPrefixes));
const double multiplier = pow(10.0, - prefix * 3 - FirstSIPrefixPower);
const int text_height = p.boundingRect(0, 0, INT_MAX, INT_MAX,
assert(prefix < countof(SIPrefixes));
const double multiplier = pow(10.0, - prefix * 3 - FirstSIPrefixPower);
const int text_height = p.boundingRect(0, 0, INT_MAX, INT_MAX,
const double minor_tick_period = tick_period / MinorTickSubdivision;
const double first_major_division =
const double minor_tick_period = tick_period / MinorTickSubdivision;
const double first_major_division =
{
const double t = t0 + division * minor_tick_period;
const double x = (t - _view.offset()) / _view.scale();
{
const double t = t0 + division * minor_tick_period;
const double x = (t - _view.offset()) / _view.scale();
- p.drawText(x, 0, 0, text_height, Qt::AlignCenter |
- Qt::AlignTop | Qt::TextDontClip, s);
+ p.drawText(x, 0, 0, text_height, AlignCenter |
+ AlignTop | TextDontClip, s);