6ab2768546
This allows the user to adjust the media slider with the left and right keyboard arrows. It is currently set to adjust by 5 second increments.
18 lines
301 B
C++
18 lines
301 B
C++
#pragma once
|
|
|
|
#include <QMouseEvent>
|
|
#include "slider-ignorewheel.hpp"
|
|
|
|
class MediaSlider : public SliderIgnoreScroll {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MediaSlider(QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
void mediaSliderHovered(int value);
|
|
|
|
protected:
|
|
virtual void mouseMoveEvent(QMouseEvent *event) override;
|
|
};
|