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

Method setNameColumnWidth

pj_widgets/src/Timeline.cpp:1290–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288}
1289
1290void Timeline::setNameColumnWidth(int width_px) {
1291 if (name_panel_ == nullptr || width_px <= 0) {
1292 return;
1293 }
1294 // Floor the column at this width (it can be dragged wider, never narrower) and
1295 // pin the splitter so the separator lands exactly at width_px by default.
1296 name_panel_->setMinimumWidth(width_px);
1297 resizeNameColumn(width_px);
1298}
1299
1300void Timeline::resizeNameColumn(int width_px) {
1301 if (name_splitter_ == nullptr || width_px <= 0) {

Callers 2

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64