void paintGL() override;
void wheelEvent(QWheelEvent *event) override;
+ // For dragging.
+ void mousePressEvent(QMouseEvent *e);
+ void mouseReleaseEvent(QMouseEvent *e);
+ void mouseMoveEvent(QMouseEvent *e);
+
signals:
void position_changed(uint64_t pos);
std::string pathname;
+ bool dragging = false;
+ float last_drag_x, last_drag_y;
+
void producer_thread_func();
bool play_video(const std::string &pathname);
void internal_rewind();