Trace view: Allow setting cursors via shift-drag
[pulseview.git] / pv / views / trace / viewwidget.hpp
index f4928e67f885bcd948c10ae0b72a7da03bff5d5b..0e012560859e7aa939fe746d1ebe55660d751add 100644 (file)
@@ -25,6 +25,8 @@
 #include <QPoint>
 #include <QWidget>
 
+#include <pv/util.hpp>
+
 using std::shared_ptr;
 using std::vector;
 
@@ -143,6 +145,7 @@ protected:
        pv::views::trace::View &view_;
        QPoint mouse_point_;
        QPoint mouse_down_point_;
+       pv::util::Timestamp mouse_down_offset_;
        shared_ptr<ViewItem> mouse_down_item_;
        bool item_dragging_;
 };