123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #ifndef QT3DINPUT_QINPUTCHORD_H
- #define QT3DINPUT_QINPUTCHORD_H
- #include <Qt3DInput/qt3dinput_global.h>
- #include <Qt3DCore/qnode.h>
- #include <Qt3DInput/qabstractactioninput.h>
- QT_BEGIN_NAMESPACE
- namespace Qt3DInput {
- class QAbstractPhysicalDevice;
- class QInputChordPrivate;
- class QT3DINPUTSHARED_EXPORT QInputChord : public Qt3DInput::QAbstractActionInput
- {
- Q_OBJECT
- Q_PROPERTY(int timeout READ timeout WRITE setTimeout NOTIFY timeoutChanged)
- public:
- explicit QInputChord(Qt3DCore::QNode *parent = nullptr);
- ~QInputChord();
- int timeout() const;
- void addChord(QAbstractActionInput *input);
- void removeChord(QAbstractActionInput *input);
- QVector<QAbstractActionInput *> chords() const;
- public Q_SLOTS:
- void setTimeout(int timeout);
- Q_SIGNALS:
- void timeoutChanged(int timeout);
- private:
- Q_DECLARE_PRIVATE(QInputChord)
- Qt3DCore::QNodeCreatedChangeBasePtr createNodeCreationChange() const Q_DECL_OVERRIDE;
- };
- }
- QT_END_NAMESPACE
- #endif
|