X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fwidgets%2Fpopup.cpp;h=68f79f0f6fbeafe6066bc0a3bc96e4ad11d037d8;hb=f9abacf20c85333a3a6be785049e7658967e3104;hp=47280d1ff6ddd892116228f41ccac17088a78dae;hpb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;p=pulseview.git diff --git a/pv/widgets/popup.cpp b/pv/widgets/popup.cpp index 47280d1f..68f79f0f 100644 --- a/pv/widgets/popup.cpp +++ b/pv/widgets/popup.cpp @@ -27,7 +27,7 @@ #include #include -#include "popup.h" +#include "popup.hpp" using std::max; using std::min; @@ -146,7 +146,7 @@ QPolygon Popup::arrow_polygon() const const int l = ArrowLength + ArrowOverlap; switch (pos_) - { + { case Right: poly << QPoint(p.x() + l, p.y() - l); break; @@ -155,7 +155,7 @@ QPolygon Popup::arrow_polygon() const poly << QPoint(p.x() - l, p.y() + l); break; - case Left: + case Left: case Top: poly << QPoint(p.x() - l, p.y() - l); break; @@ -164,13 +164,13 @@ QPolygon Popup::arrow_polygon() const poly << p; switch (pos_) - { + { case Right: case Bottom: poly << QPoint(p.x() + l, p.y() + l); break; - case Left: + case Left: poly << QPoint(p.x() - l, p.y() + l); break; @@ -311,4 +311,3 @@ void Popup::showEvent(QShowEvent*) } // namespace widgets } // namespace pv -