summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qaxisinput.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire350@gmail.com>2015-11-28 11:06:56 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-11-28 15:01:53 +0000
commitf81203adf53a91ad44f5fd6c5a81cdde46973cd3 (patch)
tree05fcbc332a51cec5e6b9d659e53602d3a5fbf541 /src/input/frontend/qaxisinput.h
parentf08480891b1f0ec88268fb69c4dadf34f6cc833e (diff)
QAxisInput: keys specified as a bit mask directly
Change-Id: If4a3cc675c4bd58e1d3b389144d85d1a8e477fe5 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend/qaxisinput.h')
-rw-r--r--src/input/frontend/qaxisinput.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/frontend/qaxisinput.h b/src/input/frontend/qaxisinput.h
index b28e85a3a..08cc8be6a 100644
--- a/src/input/frontend/qaxisinput.h
+++ b/src/input/frontend/qaxisinput.h
@@ -54,7 +54,7 @@ class QT3DINPUTSHARED_EXPORT QAxisInput : public Qt3DCore::QNode
Q_PROPERTY(Qt3DInput::QAbstractPhysicalDevice *sourceDevice READ sourceDevice WRITE setSourceDevice NOTIFY sourceDeviceChanged)
Q_PROPERTY(float scale READ scale WRITE setScale NOTIFY scaleChanged)
Q_PROPERTY(int axis READ axis WRITE setAxis NOTIFY axisChanged)
- Q_PROPERTY(QVariantList keys READ keys WRITE setKeys NOTIFY keysChanged)
+ Q_PROPERTY(int keys READ keys WRITE setKeys NOTIFY keysChanged)
public:
explicit QAxisInput(Qt3DCore::QNode *parent = Q_NULLPTR);
@@ -69,8 +69,8 @@ public:
void setAxis(int axis);
int axis() const;
- void setKeys(const QVariantList &keys);
- QVariantList keys() const;
+ void setKeys(int keys);
+ int keys() const;
Q_SIGNALS:
void sourceDeviceChanged();