QWheelEvent: make magic number 120 a symbolic constant

The documentation states that 120 is the value users of
the event should use to determine one full step of the
wheel. Provide that number as a symbolic constant.

Change-Id: I0da0cdd8328a476538080b7276d02863906ea53f
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
bb10
Marc Mutz 2014-09-09 13:38:22 +02:00
parent f826039e09
commit aac6cda804
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ protected:
class Q_GUI_EXPORT QWheelEvent : public QInputEvent
{
public:
enum { DefaultDeltasPerStep = 120 };
QWheelEvent(const QPointF &pos, int delta,
Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers,
Qt::Orientation orient = Qt::Vertical);