2015-07-26 21:39:49 +00:00
|
|
|
#ifndef WDRAGGABLESPINBOX_H
|
|
|
|
#define WDRAGGABLESPINBOX_H
|
|
|
|
|
|
|
|
#include <QDoubleSpinBox>
|
|
|
|
|
|
|
|
class WDraggableSpinBox : public QDoubleSpinBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
bool mBeingDragged;
|
|
|
|
bool mBeenDragged;
|
|
|
|
double mDefaultValue;
|
2015-07-29 03:19:25 +00:00
|
|
|
int mLastY;
|
2015-07-26 21:39:49 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
explicit WDraggableSpinBox(QWidget *parent = 0);
|
|
|
|
~WDraggableSpinBox();
|
|
|
|
void mousePressEvent(QMouseEvent *Event);
|
|
|
|
void mouseReleaseEvent(QMouseEvent *Event);
|
|
|
|
void mouseMoveEvent(QMouseEvent *Event);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WDRAGGABLESPINBOX_H
|