| 1288 | } |
| 1289 | |
| 1290 | void 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 | |
| 1300 | void Timeline::resizeNameColumn(int width_px) { |
| 1301 | if (name_splitter_ == nullptr || width_px <= 0) { |
no outgoing calls