]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewwidget.hpp
Viewport: Implemented item hover cursors
[pulseview.git] / pv / view / viewwidget.hpp
index 6fd1ecefd1f853a2403fc880cacb36c1c699a108..003c0eeda09b57f31d9f26e31b54244045876ac6 100644 (file)
@@ -40,6 +40,15 @@ class ViewWidget : public QWidget
 protected:
        ViewWidget(View &parent);
 
+       /**
+        * Indicates when a view item is being hovered over.
+        * @param item The item that is being hovered over, or @c nullptr
+        * if no view item is being hovered over.
+        * @remarks the default implementation does nothing.
+        */
+       virtual void item_hover(
+               const std::shared_ptr<pv::view::ViewItem> &item);
+
        /**
         * Indicates the event an a view item has been clicked.
         * @param item the view item that has been clicked.