summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qactioninput.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire350@gmail.com>2015-11-28 11:02:57 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-11-28 15:01:51 +0000
commitf08480891b1f0ec88268fb69c4dadf34f6cc833e (patch)
treedc9ccd46392b7b921dc46a27522c04c744fdce35 /src/input/frontend/qactioninput.h
parent1963656636c9bcf576922db65cd8451be07e3077 (diff)
QActionInput: keys specified as a bit mask directly
Change-Id: Idbc36d2a391fa2dcf21735f85a5b2d3859c97450 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend/qactioninput.h')
-rw-r--r--src/input/frontend/qactioninput.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/frontend/qactioninput.h b/src/input/frontend/qactioninput.h
index 37e9c7957..537e7e1e0 100644
--- a/src/input/frontend/qactioninput.h
+++ b/src/input/frontend/qactioninput.h
@@ -51,7 +51,7 @@ class QT3DINPUTSHARED_EXPORT QActionInput : public Qt3DCore::QNode
{
Q_OBJECT
Q_PROPERTY(Qt3DInput::QAbstractPhysicalDevice *sourceDevice READ sourceDevice WRITE setSourceDevice NOTIFY sourceDeviceChanged)
- Q_PROPERTY(QVariantList keys READ keys WRITE setKeys NOTIFY keysChanged)
+ Q_PROPERTY(int keys READ keys WRITE setKeys NOTIFY keysChanged)
public:
explicit QActionInput(Qt3DCore::QNode *parent = Q_NULLPTR);
@@ -60,8 +60,8 @@ public:
void setSourceDevice(QAbstractPhysicalDevice *sourceDevice);
QAbstractPhysicalDevice *sourceDevice() const;
- void setKeys(const QVariantList &keys);
- QVariantList keys() const;
+ void setKeys(int keys);
+ int keys() const;
Q_SIGNALS:
void sourceDeviceChanged();