obs-studio/UI/balance-slider.hpp

22 lines
324 B
C++
Raw Normal View History

#pragma once
#include <QSlider>
#include <QMouseEvent>
class BalanceSlider : public QSlider {
Q_OBJECT
public:
inline BalanceSlider(QWidget *parent = 0) : QSlider(parent) {}
signals:
void doubleClicked();
protected:
void mouseDoubleClickEvent(QMouseEvent *event)
{
emit doubleClicked();
event->accept();
}
};