#include <algorithm>
#include <cassert>
-#include <QtGui>
#include <QApplication>
#include <QDesktopWidget>
#include <QLineEdit>
+#include <QtGui>
#include "popup.hpp"
case Bottom:
if (point_.y() > y())
return false;
- return true;
+ return true;
case Left:
if (point_.x() < (x() + width()))
QPolygon poly;
const QPoint p = mapFromGlobal(point_);
- const int l = ArrowLength + ArrowOverlap;
+ const int l = ArrowLength + ArrowOverlap;
switch (pos_) {
case Right:
case Left:
poly << QPoint(p.x() - l, p.y() + l);
break;
-
+
case Top:
poly << QPoint(p.x() + l, p.y() - l);
break;