projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor whitespace cosmetics.
[pulseview.git]
/
pv
/
widgets
/
popup.cpp
diff --git
a/pv/widgets/popup.cpp
b/pv/widgets/popup.cpp
index 7143c24a9aba9ce568bc933d3283ee67c648660c..de2d1b57010643228bb28c5ba713eb25723c55eb 100644
(file)
--- a/
pv/widgets/popup.cpp
+++ b/
pv/widgets/popup.cpp
@@
-146,7
+146,7
@@
QPolygon Popup::arrow_polygon() const
const int l = ArrowLength + ArrowOverlap;
switch (pos_)
const int l = ArrowLength + ArrowOverlap;
switch (pos_)
-
{
+ {
case Right:
poly << QPoint(p.x() + l, p.y() - l);
break;
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;
poly << QPoint(p.x() - l, p.y() + l);
break;
-
case Left:
+ case Left:
case Top:
poly << QPoint(p.x() - l, p.y() - l);
break;
case Top:
poly << QPoint(p.x() - l, p.y() - l);
break;
@@
-164,13
+164,13
@@
QPolygon Popup::arrow_polygon() const
poly << p;
switch (pos_)
poly << p;
switch (pos_)
-
{
+ {
case Right:
case Bottom:
poly << QPoint(p.x() + l, p.y() + l);
break;
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;
poly << QPoint(p.x() - l, p.y() + l);
break;
@@
-238,7
+238,7
@@
void Popup::reposition_widget()
if (pos_ == Left)
o.rx() = -width();
if (pos_ == Left)
o.rx() = -width();
- else if(pos_ == Top)
+ else if
(pos_ == Top)
o.ry() = -height();
o += point_;
o.ry() = -height();
o += point_;
@@
-300,7
+300,7
@@
void Popup::mouseReleaseEvent(QMouseEvent *e)
// We need our own out-of-bounds click handler because QWidget counts
// the drop-shadow region as inside the widget
// 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();
}
close();
}
@@
-311,4
+311,3
@@
void Popup::showEvent(QShowEvent*)
} // namespace widgets
} // namespace pv
} // namespace widgets
} // namespace pv
-