yolobs-studio/UI/balance-slider.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
324 B
C++
Raw 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();
}
};