yolobs-studio/UI/balance-slider.hpp
2019-07-27 14:47:10 +02:00

21 lines
324 B
C++

#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();
}
};