X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fpopup.cpp;h=de2d1b57010643228bb28c5ba713eb25723c55eb;hp=68f79f0f6fbeafe6066bc0a3bc96e4ad11d037d8;hb=f32905530347e1020d5ce7959123cf797c9a4829;hpb=ce11b2ea851633dc937881cdbd358541685b43be diff --git a/pv/widgets/popup.cpp b/pv/widgets/popup.cpp index 68f79f0f..de2d1b57 100644 --- a/pv/widgets/popup.cpp +++ b/pv/widgets/popup.cpp @@ -238,7 +238,7 @@ void Popup::reposition_widget() if (pos_ == Left) o.rx() = -width(); - else if(pos_ == Top) + else if (pos_ == Top) o.ry() = -height(); o += point_; @@ -300,7 +300,7 @@ void Popup::mouseReleaseEvent(QMouseEvent *e) // We need our own out-of-bounds click handler because QWidget counts // the drop-shadow region as inside the widget - if(!bubble_rect().contains(e->pos())) + if (!bubble_rect().contains(e->pos())) close(); }