From: Soeren Apel Date: Sun, 7 Dec 2014 16:29:02 +0000 (+0100) Subject: DecodeTrace: Remove hide_hover_annotation() as it's only used once X-Git-Tag: pulseview-0.3.0~369 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ebdfa0942aeed7b314da24a2e572103a50d056bc;p=pulseview.git DecodeTrace: Remove hide_hover_annotation() as it's only used once --- diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index 94ef5f9a..0a2afbfa 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -587,11 +587,6 @@ const QString DecodeTrace::get_annotation_at_point(const QPoint &point) QString() : annotations[0].annotations().front(); } -void DecodeTrace::hide_hover_annotation() -{ - QToolTip::hideText(); -} - void DecodeTrace::hover_point_changed() { assert(owner_); @@ -605,7 +600,7 @@ void DecodeTrace::hover_point_changed() assert(view); if (!row_height_ || ann.isEmpty()) { - hide_hover_annotation(); + QToolTip::hideText(); return; } diff --git a/pv/view/decodetrace.hpp b/pv/view/decodetrace.hpp index c7013b51..a0f8e800 100644 --- a/pv/view/decodetrace.hpp +++ b/pv/view/decodetrace.hpp @@ -156,8 +156,6 @@ private: const QString get_annotation_at_point(const QPoint &point); - void hide_hover_annotation(); - void create_decoder_form(int index, std::shared_ptr &dec, QWidget *parent, QFormLayout *form);