X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=pv%2Fviews%2Ftrace%2Fviewwidget.hpp;h=ef3cfa2fc303d9692d84e596d486191888cda143;hb=82c6d8f06a94cdc39b1d2a6df576174f5c7bc5ab;hp=e7da1dbd25cbec17da10ae49e1aa8b30b5e20c97;hpb=710c2a1896fbac968c82f2d1257aaabd10a48cc8;p=pulseview.git
diff --git a/pv/views/trace/viewwidget.hpp b/pv/views/trace/viewwidget.hpp
index e7da1dbd..ef3cfa2f 100644
--- a/pv/views/trace/viewwidget.hpp
+++ b/pv/views/trace/viewwidget.hpp
@@ -17,8 +17,8 @@
* along with this program; if not, see .
*/
-#ifndef PULSEVIEW_PV_VIEWWIDGET_HPP
-#define PULSEVIEW_PV_VIEWWIDGET_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TRACE_VIEWWIDGET_HPP
+#define PULSEVIEW_PV_VIEWS_TRACE_VIEWWIDGET_HPP
#include
@@ -147,10 +147,13 @@ Q_SIGNALS:
protected:
pv::views::trace::View &view_;
QPoint mouse_point_;
- Qt::KeyboardModifiers mouse_modifiers_;
QPoint mouse_down_point_;
pv::util::Timestamp mouse_down_offset_;
shared_ptr mouse_down_item_;
+
+ /// Keyboard modifiers that were active when mouse was last moved or clicked
+ Qt::KeyboardModifiers mouse_modifiers_;
+
bool item_dragging_;
};
@@ -158,4 +161,4 @@ protected:
} // namespace views
} // namespace pv
-#endif // PULSEVIEW_PV_VIEWWIDGET_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACE_VIEWWIDGET_HPP