yolobs-studio/UI/balance-slider.hpp

22 lines
324 B
C++
Raw Permalink Normal View History

2019-07-27 12:47:10 +00:00
#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();
}
};