2021-03-20 Fred Gleason <fredg@paravelsystems.com>

* Added mouse wheel support to 'RDMarkerView'.
	* Added support for play cursor positioning by mouse to
	'RDMarkerView'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-03-20 16:03:28 -04:00
parent edf06f2d2f
commit c96955b767
4 changed files with 45 additions and 20 deletions

View File

@@ -124,6 +124,7 @@ class RDMarkerView : public QWidget
virtual void updateInterlocks();
void resizeEvent(QResizeEvent *e);
void mousePressEvent(QMouseEvent *e);
void wheelEvent(QWheelEvent *e);
private:
int Frame(int msec) const;
@@ -167,6 +168,7 @@ class RDMarkerView : public QWidget
QAction *d_delete_marker_action;
bool d_marker_menu_used;
RDMarkerHandle::PointerRole d_selected_marker;
int d_wheel_angle;
};