projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3201b1f
)
Slightly offset the PopupToolButton popup
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 23 Nov 2013 09:06:01 +0000
(09:06 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 30 Nov 2013 18:14:05 +0000
(18:14 +0000)
pv/widgets/popuptoolbutton.cpp
patch
|
blob
|
history
diff --git
a/pv/widgets/popuptoolbutton.cpp
b/pv/widgets/popuptoolbutton.cpp
index ea3515c4981130696dc135b61748b510bbd90182..4ea6f3eda5c415da26f784830437f0ff364d6342 100644
(file)
--- a/
pv/widgets/popuptoolbutton.cpp
+++ b/
pv/widgets/popuptoolbutton.cpp
@@
-45,7
+45,9
@@
void PopupToolButton::on_clicked(bool)
if(!_popup)
return;
- _popup->set_position(mapToGlobal(rect().center()), Popup::Bottom);
+ const QRect r = rect();
+ _popup->set_position(mapToGlobal(QPoint((r.left() + r.right()) / 2,
+ ((r.top() + r.bottom() * 3) / 4))), Popup::Bottom);
_popup->show();
}