]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewwidget.hpp
Fix inconsistent declaration parameter names.
[pulseview.git] / pv / view / viewwidget.hpp
index 6fd1ecefd1f853a2403fc880cacb36c1c699a108..7051c66608792bb1304cdeb03193dda3380dca76 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_VIEWWIDGET_H
-#define PULSEVIEW_PV_VIEWWIDGET_H
+#ifndef PULSEVIEW_PV_VIEWWIDGET_HPP
+#define PULSEVIEW_PV_VIEWWIDGET_HPP
 
 #include <memory>
 
 
 #include <memory>
 
@@ -40,6 +40,15 @@ class ViewWidget : public QWidget
 protected:
        ViewWidget(View &parent);
 
 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.
        /**
         * Indicates the event an a view item has been clicked.
         * @param item the view item that has been clicked.
@@ -119,7 +128,7 @@ protected:
 
        void mousePressEvent(QMouseEvent * event);
        void mouseReleaseEvent(QMouseEvent *event);
 
        void mousePressEvent(QMouseEvent * event);
        void mouseReleaseEvent(QMouseEvent *event);
-       void mouseMoveEvent(QMouseEvent *event);
+       void mouseMoveEvent(QMouseEvent *e);
 
        void leaveEvent(QEvent *event);
 
 
        void leaveEvent(QEvent *event);
 
@@ -140,4 +149,4 @@ protected:
 } // namespace view
 } // namespace pv
 
 } // namespace view
 } // namespace pv
 
-#endif // PULSEVIEW_PV_VIEWWIDGET_H
+#endif // PULSEVIEW_PV_VIEWWIDGET_HPP