Ruler::Ruler(View &parent) : MarginWidget(parent) { setMouseTracking(true); connect(&view_, SIGNAL(hover_point_changed()), this, SLOT(hover_point_changed())); }
Ruler::Ruler(View &parent) : MarginWidget(parent) { setMouseTracking(true); connect(&view_, SIGNAL(hover_point_changed()), this, SLOT(hover_point_changed())); connect(&view_, SIGNAL(offset_changed()), this, SLOT(invalidate_tick_position_cache())); connect(&view_, SIGNAL(scale_changed()), this, SLOT(invalidate_tick_position_cache())); connect(&view_, SIGNAL(tick_prefix_changed()), this, SLOT(invalidate_tick_position_cache())); connect(&view_, SIGNAL(tick_precision_changed()), this, SLOT(invalidate_tick_position_cache())); connect(&view_, SIGNAL(tick_period_changed()), this, SLOT(invalidate_tick_position_cache())); connect(&view_, SIGNAL(time_unit_changed()), this, SLOT(invalidate_tick_position_cache())); }