| 1440 | } |
| 1441 | |
| 1442 | void |
| 1443 | TrackerPanel::onItemMotionModelChanged(int index) |
| 1444 | { |
| 1445 | ComboBox* widget = qobject_cast<ComboBox*>( sender() ); |
| 1446 | |
| 1447 | assert(widget); |
| 1448 | for (std::size_t i = 0; i < _imp->items.size(); ++i) { |
| 1449 | QWidget* cellW = _imp->view->cellWidget(i, COL_MOTION_MODEL); |
| 1450 | if (widget == cellW) { |
| 1451 | TrackMarkerPtr marker = _imp->items[i].marker.lock(); |
| 1452 | TrackerContextPtr context = getContext(); |
| 1453 | // Set the selection to only this marker otherwise all markers will get the enabled value |
| 1454 | context->beginEditSelection(TrackerContext::eTrackSelectionInternal); |
| 1455 | context->clearSelection(TrackerContext::eTrackSelectionInternal); |
| 1456 | context->addTrackToSelection(marker, TrackerContext::eTrackSelectionInternal); |
| 1457 | context->endEditSelection(TrackerContext::eTrackSelectionInternal); |
| 1458 | |
| 1459 | marker->setMotionModelFromGui(index); |
| 1460 | break; |
| 1461 | } |
| 1462 | } |
| 1463 | } |
| 1464 | |
| 1465 | void |
| 1466 | TrackerPanel::onTrackKeyframeSet(const TrackMarkerPtr& marker, |
nothing calls this directly
no test coverage detected