const QColor View::CursorAreaColour(220, 231, 243);
+const QSizeF View::LabelPadding(4, 0);
+
View::View(SigSession &session, QWidget *parent) :
QAbstractScrollArea(parent),
_session(session),
connect(&_session, SIGNAL(data_updated()),
this, SLOT(data_updated()));
+ connect(&_cursors.first, SIGNAL(time_changed()),
+ this, SLOT(marker_time_changed()));
+ connect(&_cursors.second, SIGNAL(time_changed()),
+ this, SLOT(marker_time_changed()));
+
setViewportMargins(LabelMarginWidth, RulerHeight, 0, 0);
setViewport(_viewport);
_viewport->update();
}
+void View::marker_time_changed()
+{
+ _ruler->update();
+ _viewport->update();
+}
+
} // namespace view
} // namespace pv