diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2016-05-03 12:14:22 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-05-04 08:33:28 +0000 |
commit | 67a6c7fc59f750c1b535b545983625d3ebc86cdf (patch) | |
tree | 72f69f8bdd597881a50f57f98a6cea32d80c4d91 /src/input/frontend/qbuttonaxisinput.h | |
parent | 5f9831511b6832d1f9cce118496289816c1110ce (diff) |
Change QList<int> properties to QVector<int>
Now that QVector<int> is supported by QML, let's switch to it and avoid
the conversion cost altogether.
Change-Id: I1f6bfb29cab38547d62fc7ec3ee6a322ca400f70
Task-number: QTBUG-51467
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend/qbuttonaxisinput.h')
-rw-r--r-- | src/input/frontend/qbuttonaxisinput.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input/frontend/qbuttonaxisinput.h b/src/input/frontend/qbuttonaxisinput.h index 2ee2a2896..2b551b8fb 100644 --- a/src/input/frontend/qbuttonaxisinput.h +++ b/src/input/frontend/qbuttonaxisinput.h @@ -53,21 +53,21 @@ class QT3DINPUTSHARED_EXPORT QButtonAxisInput : public QAbstractAxisInput { Q_OBJECT Q_PROPERTY(float scale READ scale WRITE setScale NOTIFY scaleChanged) - Q_PROPERTY(QList<int> buttons READ buttons WRITE setButtons NOTIFY buttonsChanged) + Q_PROPERTY(QVector<int> buttons READ buttons WRITE setButtons NOTIFY buttonsChanged) public: explicit QButtonAxisInput(Qt3DCore::QNode *parent = nullptr); float scale() const; - QList<int> buttons() const; + QVector<int> buttons() const; public Q_SLOTS: void setScale(float scale); - void setButtons(const QList<int> &buttons); + void setButtons(const QVector<int> &buttons); Q_SIGNALS: void scaleChanged(float scale); - void buttonsChanged(const QList<int> &buttons); + void buttonsChanged(const QVector<int> &buttons); private: Q_DECLARE_PRIVATE(QButtonAxisInput) |