summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qaxisinput.h
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-04-29 08:18:06 +0200
committerKevin Ottens <kevin.ottens@kdab.com>2016-05-02 10:26:25 +0000
commitf63397953d052dc2a35bcc0ec32eaff0ebd80f05 (patch)
tree869d1bd567a7a8a6d399a2ecb4e6d9e561c6b557 /src/input/frontend/qaxisinput.h
parent617e4c768616868a3e306668630efdfca69604d7 (diff)
Splitting of QAxisInput
Placed buttons and scale into a new class named QButtonAxisInput Change-Id: I0e8407dc361d9d6eda38973a8950f77b17119467 Task-number: QTBUG-51474 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/input/frontend/qaxisinput.h')
-rw-r--r--src/input/frontend/qaxisinput.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/input/frontend/qaxisinput.h b/src/input/frontend/qaxisinput.h
index 1156011e3..da840f25a 100644
--- a/src/input/frontend/qaxisinput.h
+++ b/src/input/frontend/qaxisinput.h
@@ -55,29 +55,24 @@ class QT3DINPUTSHARED_EXPORT QAxisInput : public Qt3DCore::QNode
{
Q_OBJECT
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 buttons READ buttons WRITE setButtons NOTIFY buttonsChanged)
public:
explicit QAxisInput(Qt3DCore::QNode *parent = nullptr);
QAbstractPhysicalDevice *sourceDevice() const;
- float scale() const;
int axis() const;
- QVariantList buttons() const;
public Q_SLOTS:
void setSourceDevice(QAbstractPhysicalDevice *sourceDevice);
- void setScale(float scale);
void setAxis(int axis);
- void setButtons(const QVariantList &buttons);
Q_SIGNALS:
void sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice);
- void scaleChanged(float scale);
void axisChanged(int axis);
- void buttonsChanged(const QVariantList &buttons);
+
+protected:
+ QAxisInput(QAxisInputPrivate &dd, QNode *parent = nullptr);
private:
Q_DECLARE_PRIVATE(QAxisInput)