]> sigrok.org Git - pulseview.git/commitdiff
DecodeTrace: Remove hide_hover_annotation() as it's only used once
authorSoeren Apel <redacted>
Sun, 7 Dec 2014 16:29:02 +0000 (17:29 +0100)
committerUwe Hermann <redacted>
Wed, 10 Dec 2014 17:06:16 +0000 (18:06 +0100)
pv/view/decodetrace.cpp
pv/view/decodetrace.hpp

index 94ef5f9a4a1364a9fac3c843cbb84173f3228031..0a2afbfa67f4e16474cb9330e0800f0d361ee03f 100644 (file)
@@ -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;
        }
 
index c7013b514f6d232eb9a7636799b36f6141b7c3ae..a0f8e8000cbf66e5dc3b2d4b277f75970ce68d0f 100644 (file)
@@ -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<pv::data::decode::Decoder> &dec,
                QWidget *parent, QFormLayout *form);