X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fruler.hpp;h=cfba0489c213c0554df35707aaac97585b4b75d6;hb=115a522abb9dc4071f62a3df77b9501e1f9ff722;hp=864d611dda4607479d6bbc2f55394d5fab6d0071;hpb=415341a11f0023cc9cec7b62cf8058c84c8b7ea6;p=pulseview.git diff --git a/pv/view/ruler.hpp b/pv/view/ruler.hpp index 864d611..cfba048 100644 --- a/pv/view/ruler.hpp +++ b/pv/view/ruler.hpp @@ -44,14 +44,6 @@ private: /// Height of the hover arrow in multiples of the text height static const float HoverArrowSize; - static const int Padding; - - /** - * The vertical offset, relative to the bottom line of the widget, - * where the arrows of the cursor labels end. - */ - static const int BaselineOffset; - public: Ruler(View &parent); @@ -68,6 +60,10 @@ public: */ QSize extended_size_hint() const; +private: + std::shared_ptr get_mouse_over_item( + const QPoint &pt); + private: void paintEvent(QPaintEvent *event); @@ -78,6 +74,8 @@ private: void mouseDoubleClickEvent(QMouseEvent *e); + void contextMenuEvent(QContextMenuEvent *event); + void keyPressEvent(QKeyEvent *e); private: