diff options
Diffstat (limited to 'tests/auto/input/inputsequence/tst_inputsequence.cpp')
-rw-r--r-- | tests/auto/input/inputsequence/tst_inputsequence.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/auto/input/inputsequence/tst_inputsequence.cpp b/tests/auto/input/inputsequence/tst_inputsequence.cpp index 6059d7e9c..8a7939470 100644 --- a/tests/auto/input/inputsequence/tst_inputsequence.cpp +++ b/tests/auto/input/inputsequence/tst_inputsequence.cpp @@ -156,19 +156,19 @@ private Q_SLOTS: handler.addInputDeviceIntegration(&deviceIntegration); auto firstInput = new Qt3DInput::QActionInput; - firstInput->setButtons(QVector<int>() << Qt::Key_Q << Qt::Key_A); + firstInput->setButtons(QList<int> { Qt::Key_Q, Qt::Key_A }); firstInput->setSourceDevice(device); auto backendFirstInput = handler.actionInputManager()->getOrCreateResource(firstInput->id()); simulateInitializationSync(firstInput, backendFirstInput); auto secondInput = new Qt3DInput::QActionInput; - secondInput->setButtons(QVector<int>() << Qt::Key_S << Qt::Key_W); + secondInput->setButtons(QList<int> { Qt::Key_S, Qt::Key_W }); secondInput->setSourceDevice(device); auto backendSecondInput = handler.actionInputManager()->getOrCreateResource(secondInput->id()); simulateInitializationSync(secondInput, backendSecondInput); auto thirdInput = new Qt3DInput::QActionInput; - thirdInput->setButtons(QVector<int>() << Qt::Key_D << Qt::Key_E); + thirdInput->setButtons(QList<int> { Qt::Key_D, Qt::Key_E }); thirdInput->setSourceDevice(device); auto backendThirdInput = handler.actionInputManager()->getOrCreateResource(thirdInput->id()); simulateInitializationSync(thirdInput, backendThirdInput); @@ -282,19 +282,19 @@ private Q_SLOTS: handler.addInputDeviceIntegration(&deviceIntegration); auto firstInput = new Qt3DInput::QActionInput; - firstInput->setButtons(QVector<int>() << Qt::Key_Q << Qt::Key_A); + firstInput->setButtons(QList<int> { Qt::Key_Q, Qt::Key_A }); firstInput->setSourceDevice(device); auto backendFirstInput = handler.actionInputManager()->getOrCreateResource(firstInput->id()); simulateInitializationSync(firstInput, backendFirstInput); auto secondInput = new Qt3DInput::QActionInput; - secondInput->setButtons(QVector<int>() << Qt::Key_S << Qt::Key_W); + secondInput->setButtons(QList<int> { Qt::Key_S, Qt::Key_W }); secondInput->setSourceDevice(device); auto backendSecondInput = handler.actionInputManager()->getOrCreateResource(secondInput->id()); simulateInitializationSync(secondInput, backendSecondInput); auto thirdInput = new Qt3DInput::QActionInput; - thirdInput->setButtons(QVector<int>() << Qt::Key_D << Qt::Key_E); + thirdInput->setButtons(QList<int> { Qt::Key_D, Qt::Key_E }); thirdInput->setSourceDevice(device); auto backendThirdInput = handler.actionInputManager()->getOrCreateResource(thirdInput->id()); simulateInitializationSync(thirdInput, backendThirdInput); @@ -340,19 +340,19 @@ private Q_SLOTS: handler.addInputDeviceIntegration(&deviceIntegration); auto firstInput = new Qt3DInput::QActionInput; - firstInput->setButtons(QVector<int>() << Qt::Key_Q << Qt::Key_A); + firstInput->setButtons(QList<int> { Qt::Key_Q, Qt::Key_A }); firstInput->setSourceDevice(device); auto backendFirstInput = handler.actionInputManager()->getOrCreateResource(firstInput->id()); simulateInitializationSync(firstInput, backendFirstInput); auto secondInput = new Qt3DInput::QActionInput; - secondInput->setButtons(QVector<int>() << Qt::Key_S << Qt::Key_W); + secondInput->setButtons(QList<int> { Qt::Key_S, Qt::Key_W }); secondInput->setSourceDevice(device); auto backendSecondInput = handler.actionInputManager()->getOrCreateResource(secondInput->id()); simulateInitializationSync(secondInput, backendSecondInput); auto thirdInput = new Qt3DInput::QActionInput; - thirdInput->setButtons(QVector<int>() << Qt::Key_D << Qt::Key_E); + thirdInput->setButtons(QList<int> { Qt::Key_D, Qt::Key_E }); thirdInput->setSourceDevice(device); auto backendThirdInput = handler.actionInputManager()->getOrCreateResource(thirdInput->id()); simulateInitializationSync(thirdInput, backendThirdInput); @@ -398,13 +398,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_S); + secondInput->setButtons(QList<int> { Qt::Key_S }); secondInput->setSourceDevice(device); auto backendSecondInput = handler.actionInputManager()->getOrCreateResource(secondInput->id()); simulateInitializationSync(secondInput, backendSecondInput); |