]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/viewport.hpp
Fix #1596 by making memory management more robust
[pulseview.git] / pv / views / trace / viewport.hpp
index a49084b43ebe901f6e9cd7bb6ab2ad199e41e580..48f2d09c9d0c4c178535c089bdc86a7a064d26fc 100644 (file)
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWPORT_HPP
-#define PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWPORT_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TRACE_VIEWPORT_HPP
+#define PULSEVIEW_PV_VIEWS_TRACE_VIEWPORT_HPP
 
 #include <boost/optional.hpp>
 
+#include <QPoint>
 #include <QTimer>
 #include <QTouchEvent>
 
@@ -62,7 +63,7 @@ private:
         * @param item The item that is being hovered over, or @c nullptr
         * if no view item is being hovered over.
         */
-       void item_hover(const shared_ptr<ViewItem> &item);
+       void item_hover(const shared_ptr<ViewItem> &item, QPoint pos);
 
        /**
         * Sets this item into the dragged state.
@@ -110,4 +111,4 @@ private:
 } // namespace views
 } // namespace pv
 
-#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWPORT_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACE_VIEWPORT_HPP