* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
- _text_size.width() + View::LabelPadding.width() * 2,
- _text_size.height() + View::LabelPadding.height() * 2);
+ text_size_.width() + View::LabelPadding.width() * 2,
+ text_size_.height() + View::LabelPadding.height() * 2);
const float top = rect.height() - label_size.height() -
Cursor::Offset - Cursor::ArrowSize - 0.5f;
const float height = label_size.height();
const float top = rect.height() - label_size.height() -
Cursor::Offset - Cursor::ArrowSize - 0.5f;
const float height = label_size.height();
return QRectF(x, top, label_size.width(), height);
else
return QRectF(x - label_size.width(), top,
label_size.width(), height);
}
return QRectF(x, top, label_size.width(), height);
else
return QRectF(x - label_size.width(), top,
label_size.width(), height);
}
compute_text_size(p, prefix);
const QRectF r(get_label_rect(rect));
compute_text_size(p, prefix);
const QRectF r(get_label_rect(rect));
- _text_size = p.boundingRect(QRectF(), 0,
- pv::util::format_time(_time, prefix, 2)).size();
+ text_size_ = p.boundingRect(QRectF(), 0,
+ pv::util::format_time(time_, prefix, 2)).size();