CursorPair::CursorPair(View &view) :
TimeItem(view),
first_(new Cursor(view, 0.0)),
second_(new Cursor(view, 1.0))
{
CursorPair::CursorPair(View &view) :
TimeItem(view),
first_(new Cursor(view, 0.0)),
second_(new Cursor(view, 1.0))
{
connect(&view_, SIGNAL(hover_point_changed(const QWidget*, QPoint)),
this, SLOT(on_hover_point_changed(const QWidget*, QPoint)));
}
connect(&view_, SIGNAL(hover_point_changed(const QWidget*, QPoint)),
this, SLOT(on_hover_point_changed(const QWidget*, QPoint)));
}
const pair<float, float> offsets(get_cursor_offsets());
const int l = (int)max(min(offsets.first, offsets.second), 0.0f);
const pair<float, float> offsets(get_cursor_offsets());
const int l = (int)max(min(offsets.first, offsets.second), 0.0f);
void CursorPair::on_hover_point_changed(const QWidget* widget, const QPoint& hp)
{
if (widget != view_.ruler())
void CursorPair::on_hover_point_changed(const QWidget* widget, const QPoint& hp)
{
if (widget != view_.ruler())