Another TODO removed

This commit is contained in:
Bertrand Songis
2014-02-20 13:18:18 +01:00
parent a14848fc7f
commit 067c4ee0db
3 changed files with 1 additions and 4 deletions
+1
View File
@@ -13,6 +13,7 @@ set(simulation_HDRS
menuwidget.h
xcursorwidget.h
xmenuwidget.h
myslider.h
)
if(SDL_FOUND)
+31
View File
@@ -0,0 +1,31 @@
#ifndef MYSLIDER_H
#define MYSLIDER_H
#include <QSlider>
#include <QtGui>
class mySlider : public QSlider
{
Q_OBJECT
public:
explicit mySlider(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