MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / setDataSpan

Method setDataSpan

pj_widgets/src/Timeline.cpp:433–437  ·  view source on GitHub ↗

Update only the tinted data span (display-ns), keeping the rest of the layout — used to track the band live during a bar drag without a rebuild.

Source from the content-addressed store, hash-verified

431 /// Update only the tinted data span (display-ns), keeping the rest of the
432 /// layout — used to track the band live during a bar drag without a rebuild.
433 void setDataSpan(qint64 data_min_ns, qint64 data_max_ns) {
434 data_min_ns_ = data_min_ns;
435 data_max_ns_ = data_max_ns;
436 update();
437 }
438
439 [[nodiscard]] QRectF boundingRect() const override {
440 return QRectF(0, 0, width_px_, kRulerHeight);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected