]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/ruler.cpp
AnalogSignal: Use setting change handler for threshold display
[pulseview.git] / pv / views / trace / ruler.cpp
index 5455b2099ba77abf7315a4e9fa11a98c5494d499..0526bb2ceb21646f8e49bb9c4e1c64dbb1b67f6c 100644 (file)
@@ -46,8 +46,8 @@ Ruler::Ruler(View &parent) :
 {
        setMouseTracking(true);
 
 {
        setMouseTracking(true);
 
-       connect(&view_, SIGNAL(hover_point_changed()),
-               this, SLOT(hover_point_changed()));
+       connect(&view_, SIGNAL(hover_point_changed(QPoint)),
+               this, SLOT(hover_point_changed(QPoint)));
        connect(&view_, SIGNAL(offset_changed()),
                this, SLOT(invalidate_tick_position_cache()));
        connect(&view_, SIGNAL(scale_changed()),
        connect(&view_, SIGNAL(offset_changed()),
                this, SLOT(invalidate_tick_position_cache()));
        connect(&view_, SIGNAL(scale_changed()),
@@ -256,8 +256,10 @@ int Ruler::calculate_text_height() const
        return QFontMetrics(font()).ascent();
 }
 
        return QFontMetrics(font()).ascent();
 }
 
-void Ruler::hover_point_changed()
+void Ruler::hover_point_changed(const QPoint &hp)
 {
 {
+       (void)hp;
+
        update();
 }
 
        update();
 }