MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / compute_text_size

Method compute_text_size

DSView/pv/view/cursor.cpp:159–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void Cursor::compute_text_size(QPainter &p, unsigned int prefix)
160{
161 (void)prefix;
162 _text_size = p.boundingRect(QRect(), 0,
163 Ruler::format_real_time(_index, _view.session().cur_snap_samplerate())).size();
164}
165
166} // namespace view
167} // namespace pv

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
cur_snap_samplerateMethod · 0.80
sessionMethod · 0.80
QRectClass · 0.70

Tested by

no test coverage detected