]> sigrok.org Git - pulseview.git/commitdiff
DecodeTrace: Don't show tooltips destined for the header area
authorSoeren Apel <redacted>
Wed, 12 Jul 2017 07:05:39 +0000 (09:05 +0200)
committerSoeren Apel <redacted>
Wed, 12 Jul 2017 07:05:39 +0000 (09:05 +0200)
pv/views/trace/decodetrace.cpp

index b0395eaa05dc685828a6d31d3d69a1383be59361..e6b977ae01952ea1d22f377e8898b060c6fc3c1c 100644 (file)
@@ -716,6 +716,12 @@ void DecodeTrace::hover_point_changed()
        assert(view);
 
        QPoint hp = view->hover_point();
+
+       if (hp.x() == 0) {
+               QToolTip::hideText();
+               return;
+       }
+
        QString ann = get_annotation_at_point(hp);
 
        assert(view);