X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fcursorheader.hpp;h=ff732856ee03f163f0d9e3310552a99d1c9c9c61;hb=dbfae3f1b55b984c7ee7e619a8da53b77db98c90;hp=90a000f17997779cd613cef40e2f042e0305d787;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git diff --git a/pv/view/cursorheader.hpp b/pv/view/cursorheader.hpp index 90a000f..ff73285 100644 --- a/pv/view/cursorheader.hpp +++ b/pv/view/cursorheader.hpp @@ -28,7 +28,7 @@ namespace pv { namespace view { -class TimeMarker; +class TimeItem; /** * Widget to hold the labels over the cursors. @@ -58,12 +58,16 @@ private: void mouseMoveEvent(QMouseEvent *e); void mousePressEvent(QMouseEvent *e); void mouseReleaseEvent(QMouseEvent *); + void leaveEvent(QEvent*); + void mouseDoubleClickEvent(QMouseEvent *e); + + void keyPressEvent(QKeyEvent *e); + +private: int calculateTextHeight(); - std::weak_ptr grabbed_marker_; - QPoint mouse_down_point_; - bool dragging_; + std::shared_ptr mouse_down_item_; const int textHeight_; };