2018-08-23 18:43:44 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QMouseEvent>
|
2020-09-05 21:06:47 -07:00
|
|
|
#include "slider-ignorewheel.hpp"
|
2018-08-23 18:43:44 -07:00
|
|
|
|
2020-09-05 21:06:47 -07:00
|
|
|
class MediaSlider : public SliderIgnoreScroll {
|
2018-08-23 18:43:44 -07:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MediaSlider(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void mediaSliderHovered(int value);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void mouseMoveEvent(QMouseEvent *event) override;
|
2022-06-11 11:11:27 -07:00
|
|
|
virtual bool eventFilter(QObject *obj, QEvent *event) override;
|
2018-08-23 18:43:44 -07:00
|
|
|
};
|