PrimeWorldEditor/UI/WDraggableSpinBox.h

23 lines
497 B
C
Raw Normal View History

#ifndef WDRAGGABLESPINBOX_H
#define WDRAGGABLESPINBOX_H
#include <QDoubleSpinBox>
class WDraggableSpinBox : public QDoubleSpinBox
{
Q_OBJECT
bool mBeingDragged;
bool mBeenDragged;
double mDefaultValue;
int mLastY;
public:
explicit WDraggableSpinBox(QWidget *parent = 0);
~WDraggableSpinBox();
void mousePressEvent(QMouseEvent *Event);
void mouseReleaseEvent(QMouseEvent *Event);
void mouseMoveEvent(QMouseEvent *Event);
};
#endif // WDRAGGABLESPINBOX_H