#include <QDesktopWidget>
#include <QLineEdit>
-#include "popup.h"
+#include "popup.hpp"
using std::max;
using std::min;
const int l = ArrowLength + ArrowOverlap;
switch (pos_)
- {
+ {
case Right:
poly << QPoint(p.x() + l, p.y() - l);
break;
poly << QPoint(p.x() - l, p.y() + l);
break;
- case Left:
+ case Left:
case Top:
poly << QPoint(p.x() - l, p.y() - l);
break;
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;
} // namespace widgets
} // namespace pv
-