projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MainBar: Added missing menu item
[pulseview.git]
/
pv
/
view
/
viewport.hpp
diff --git
a/pv/view/viewport.hpp
b/pv/view/viewport.hpp
index 2c8211b8dce43b2cee22e8fb872ae7a64af15c2c..704e73115514b2183cb4ce058b86bbc9a9000a9d 100644
(file)
--- a/
pv/view/viewport.hpp
+++ b/
pv/view/viewport.hpp
@@
-21,9
+21,12
@@
#ifndef PULSEVIEW_PV_VIEW_VIEWPORT_HPP
#define PULSEVIEW_PV_VIEW_VIEWPORT_HPP
#ifndef PULSEVIEW_PV_VIEW_VIEWPORT_HPP
#define PULSEVIEW_PV_VIEW_VIEWPORT_HPP
+#include <boost/optional.hpp>
+
#include <QTimer>
#include <QTouchEvent>
#include <QTimer>
#include <QTouchEvent>
+#include "pv/util.hpp"
#include "viewwidget.hpp"
class QPainter;
#include "viewwidget.hpp"
class QPainter;
@@
-93,7
+96,8
@@
private:
void wheelEvent(QWheelEvent *event);
private:
void wheelEvent(QWheelEvent *event);
private:
- double drag_offset_;
+ boost::optional<pv::util::Timestamp> drag_offset_;
+ int drag_v_offset_;
double pinch_offset0_;
double pinch_offset1_;
double pinch_offset0_;
double pinch_offset1_;