projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
View: Make TimeItem derivatives snap to edges when ruler-dragged
[pulseview.git]
/
pv
/
views
/
trace
/
viewport.hpp
diff --git
a/pv/views/trace/viewport.hpp
b/pv/views/trace/viewport.hpp
index a49084b43ebe901f6e9cd7bb6ab2ad199e41e580..1b77a0d0699e7264170f869f39097216d923103b 100644
(file)
--- a/
pv/views/trace/viewport.hpp
+++ b/
pv/views/trace/viewport.hpp
@@
-22,6
+22,7
@@
#include <boost/optional.hpp>
#include <boost/optional.hpp>
+#include <QPoint>
#include <QTimer>
#include <QTouchEvent>
#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.
*/
* @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.
/**
* Sets this item into the dragged state.