diff options
Diffstat (limited to 'tests/auto/input/inputchord/tst_inputchord.cpp')
-rw-r--r-- | tests/auto/input/inputchord/tst_inputchord.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/input/inputchord/tst_inputchord.cpp b/tests/auto/input/inputchord/tst_inputchord.cpp index e34fc4abe..97b448d9e 100644 --- a/tests/auto/input/inputchord/tst_inputchord.cpp +++ b/tests/auto/input/inputchord/tst_inputchord.cpp @@ -144,13 +144,13 @@ private Q_SLOTS: handler.addInputDeviceIntegration(&deviceIntegration); auto firstInput = new Qt3DInput::QActionInput; - firstInput->setButtons(QVector<int>() << Qt::Key_Q << Qt::Key_W); + firstInput->setButtons(QList<int> { Qt::Key_Q, Qt::Key_W }); firstInput->setSourceDevice(device); auto backendFirstInput = handler.actionInputManager()->getOrCreateResource(firstInput->id()); simulateInitializationSync(firstInput, backendFirstInput); auto secondInput = new Qt3DInput::QActionInput; - secondInput->setButtons(QVector<int>() << Qt::Key_A << Qt::Key_S); + secondInput->setButtons(QList<int> { Qt::Key_A, Qt::Key_S }); secondInput->setSourceDevice(device); auto backendSecondInput = handler.actionInputManager()->getOrCreateResource(secondInput->id()); simulateInitializationSync(secondInput, backendSecondInput); @@ -232,13 +232,13 @@ private Q_SLOTS: handler.addInputDeviceIntegration(&deviceIntegration); auto firstInput = new Qt3DInput::QActionInput; - firstInput->setButtons(QVector<int>() << Qt::Key_Q); + firstInput->setButtons(QList<int> { Qt::Key_Q }); firstInput->setSourceDevice(device); auto backendFirstInput = handler.actionInputManager()->getOrCreateResource(firstInput->id()); simulateInitializationSync(firstInput, backendFirstInput); auto secondInput = new Qt3DInput::QActionInput; - secondInput->setButtons(QVector<int>() << Qt::Key_W); + secondInput->setButtons(QList<int> { Qt::Key_W }); secondInput->setSourceDevice(device); auto backendSecondInput = handler.actionInputManager()->getOrCreateResource(secondInput->id()); simulateInitializationSync(secondInput, backendSecondInput); @@ -280,13 +280,13 @@ private Q_SLOTS: handler.addInputDeviceIntegration(&deviceIntegration); auto firstInput = new Qt3DInput::QActionInput; - firstInput->setButtons(QVector<int>() << Qt::Key_Q); + firstInput->setButtons(QList<int> { Qt::Key_Q }); firstInput->setSourceDevice(device); auto backendFirstInput = handler.actionInputManager()->getOrCreateResource(firstInput->id()); simulateInitializationSync(firstInput, backendFirstInput); auto secondInput = new Qt3DInput::QActionInput; - secondInput->setButtons(QVector<int>() << Qt::Key_W); + secondInput->setButtons(QList<int> { Qt::Key_W }); secondInput->setSourceDevice(device); auto backendSecondInput = handler.actionInputManager()->getOrCreateResource(secondInput->id()); simulateInitializationSync(secondInput, backendSecondInput); |