| 763 | } |
| 764 | |
| 765 | void PlotWidget::setTrackerPosition(double display_time_sec) { |
| 766 | if (tracker_ == nullptr) { |
| 767 | return; |
| 768 | } |
| 769 | tracker_->setEnabled(tracker_enabled_ && !isXYPlot()); |
| 770 | if (isXYPlot()) { |
| 771 | return; |
| 772 | } |
| 773 | tracker_->setPosition(QPointF(display_time_sec, 0.0)); |
| 774 | replot(); |
| 775 | } |
| 776 | |
| 777 | void PlotWidget::onChangeCurveColor(const QString& curve_name, QColor new_color) { |
| 778 | CurveInfo* info = curveFromTitle(curve_name); |
no test coverage detected