summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qinputchord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/frontend/qinputchord.cpp')
-rw-r--r--src/input/frontend/qinputchord.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/input/frontend/qinputchord.cpp b/src/input/frontend/qinputchord.cpp
index 0c4d15190..474e25254 100644
--- a/src/input/frontend/qinputchord.cpp
+++ b/src/input/frontend/qinputchord.cpp
@@ -40,7 +40,6 @@
#include "qinputchord_p.h"
#include <Qt3DInput/qabstractphysicaldevice.h>
-#include <Qt3DCore/qnodecreatedchange.h>
QT_BEGIN_NAMESPACE
@@ -154,7 +153,7 @@ void QInputChord::addChord(QAbstractActionInput *input)
if (!input->parent())
input->setParent(this);
- d->updateNode(input, "input", Qt3DCore::PropertyValueAdded);
+ d->update();
}
}
@@ -167,7 +166,7 @@ void QInputChord::removeChord(QAbstractActionInput *input)
{
Q_D(QInputChord);
if (d->m_chords.contains(input)) {
- d->updateNode(input, "input", Qt3DCore::PropertyValueRemoved);
+ d->update();
d->m_chords.removeOne(input);
@@ -185,18 +184,6 @@ QVector<QAbstractActionInput *> QInputChord::chords() const
return d->m_chords;
}
-Qt3DCore::QNodeCreatedChangeBasePtr QInputChord::createNodeCreationChange() const
-{
- auto creationChange = Qt3DCore::QNodeCreatedChangePtr<QInputChordData>::create(this);
- QInputChordData &data = creationChange->data;
-
- Q_D(const QInputChord);
- data.chordIds = qIdsForNodes(chords());
- data.timeout = d->m_timeout;
-
- return creationChange;
-}
-
QInputChordPrivate::QInputChordPrivate()
: QAbstractActionInputPrivate(),
m_timeout(0)