const int order = (int)floorf(log10f(min_period));
const double order_decimal = pow(10, order);
const int order = (int)floorf(log10f(min_period));
const double order_decimal = pow(10, order);
tick_period = order_decimal * ScaleUnits[unit++];
} while(tick_period < min_period && unit < countof(ScaleUnits));
tick_period = order_decimal * ScaleUnits[unit++];
} while(tick_period < min_period && unit < countof(ScaleUnits));
const int text_height = p.boundingRect(0, 0, INT_MAX, INT_MAX,
Qt::AlignLeft | Qt::AlignTop, "8").height();
const int text_height = p.boundingRect(0, 0, INT_MAX, INT_MAX,
Qt::AlignLeft | Qt::AlignTop, "8").height();