]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/popup.cpp
WellArray: Renamed to avoid namespace collissions, now that QWellArray is public
[pulseview.git] / pv / widgets / popup.cpp
index 47280d1ff6ddd892116228f41ccac17088a78dae..68f79f0f6fbeafe6066bc0a3bc96e4ad11d037d8 100644 (file)
@@ -27,7 +27,7 @@
 #include <QDesktopWidget>
 #include <QLineEdit>
 
-#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
-