[Horus] Simulator refactoring. This one should be nice :)

This commit is contained in:
Bertrand Songis
2015-10-24 19:47:44 +02:00
parent 6f774eb61a
commit 0673663427
24 changed files with 863 additions and 1006 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef _SLIDERWIDGET_H_
#define _SLIDERWIDGET_H_
#include <QSlider>
#include <QtGui>
class SliderWidget : public QSlider
{
Q_OBJECT
public:
explicit SliderWidget(QFrame * parent = 0):
QSlider(parent)
{
}
protected:
void mousePressEvent(QMouseEvent * event)
{
if (event->button() == Qt::RightButton && event->type() == QEvent::MouseButtonDblClick) {
setValue(0);
event->accept();
}
QSlider::mousePressEvent(event);
}
};
#endif // _SLIDERWIDGET_H_