obs-studio/UI/media-slider.hpp

19 lines
366 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;
virtual bool eventFilter(QObject *obj, QEvent *event) override;
};