* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <assert.h>
+
#include "popuptoolbutton.h"
namespace pv {
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();
}