Make KDeclarativeMouseEvent's button prop usable in QML.
Qt::MouseButton is not registered, so use int instead. This matches QML's own MouseEvent.button property. Ack'ed by Marco Martin.
This commit is contained in:
parent
f4d222c9c4
commit
eaef6cfbcb
@ -30,7 +30,7 @@ class KDeclarativeMouseEvent : public QObject
|
||||
Q_PROPERTY(int y READ y)
|
||||
Q_PROPERTY(int screenX READ screenX)
|
||||
Q_PROPERTY(int screenY READ screenY)
|
||||
Q_PROPERTY(Qt::MouseButton button READ button)
|
||||
Q_PROPERTY(int button READ button)
|
||||
Q_PROPERTY(Qt::MouseButtons buttons READ buttons)
|
||||
Q_PROPERTY(Qt::KeyboardModifiers modifiers READ modifiers)
|
||||
|
||||
@ -52,7 +52,7 @@ public:
|
||||
int y() const { return m_y; }
|
||||
int screenX() const { return m_screenX; }
|
||||
int screenY() const { return m_screenY; }
|
||||
Qt::MouseButton button() const { return m_button; }
|
||||
int button() const { return m_button; }
|
||||
Qt::MouseButtons buttons() const { return m_buttons; }
|
||||
Qt::KeyboardModifiers modifiers() const { return m_modifiers; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user