Companion build on Linux

This commit is contained in:
Bertrand Songis
2013-12-02 18:47:43 +01:00
parent 942e658c8e
commit 2f8f2df3c7
530 changed files with 230710 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
/*
* File: mySlider.h
* Author: Romolo Manfredini
*
* Created on 11 gennaio 2012, 23.39
*/
#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);
}
};