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;
if (pos_ == Left)
o.rx() = -width();
- else if(pos_ == Top)
+ else if (pos_ == Top)
o.ry() = -height();
o += point_;
// 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();
}
} // namespace widgets
} // namespace pv
-