return second_;
}
+void CursorPair::set_time(double time) {
+ const double delta = second_->time() - first_->time();
+ first_->set_time(time);
+ second_->set_time(time + delta);
+}
+
QPoint CursorPair::point() const
{
return first_->point();
*/
std::shared_ptr<Cursor> second() const;
+ /**
+ * Sets the time of the marker.
+ */
+ void set_time(double time);
+
QPoint point() const;
pv::widgets::Popup* create_popup(QWidget *parent);
*/
TimeItem(View &view);
+public:
+ /**
+ * Sets the time of the marker.
+ */
+ virtual void set_time(double time) = 0;
+
protected:
View &view_;
};