X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fmarginwidget.cpp;h=b4b12140276c0b4faf11f9dab36a4d6a6ed7c117;hb=6871ee9fc6c4a87cfa3796b893b91fc5b16c2673;hp=f8302f646f73867589e68027580fb8435e378895;hpb=dbfae3f1b55b984c7ee7e619a8da53b77db98c90;p=pulseview.git diff --git a/pv/view/marginwidget.cpp b/pv/view/marginwidget.cpp index f8302f6..b4b1214 100644 --- a/pv/view/marginwidget.cpp +++ b/pv/view/marginwidget.cpp @@ -22,6 +22,10 @@ #include "marginwidget.hpp" +#include + +using std::shared_ptr; + namespace pv { namespace view { @@ -35,6 +39,19 @@ MarginWidget::MarginWidget(View &parent) : setMouseTracking(true); } +void MarginWidget::show_popup(const shared_ptr &item) +{ + pv::widgets::Popup *const p = item->create_popup(this); + if (p) + p->show(); +} + +void MarginWidget::leaveEvent(QEvent*) +{ + mouse_point_ = QPoint(-1, -1); + update(); +} + void MarginWidget::clear_selection() { }