diff options
author | Noah Davis <noahadvs@gmail.com> | 2022-02-17 10:20:31 -0500 |
---|---|---|
committer | Noah Davis <noahadvs@gmail.com> | 2022-02-17 16:05:23 -0500 |
commit | bfcf47ab9dd49475c39fd966f4a80a0fd35c68c5 (patch) | |
tree | 1d5796a9290e06388be5bb465411b25f47ade047 /src/testlib/qasciikey.cpp | |
parent | cd3e3c0dc24f5eb2c5c931b5fabec904528c4102 (diff) |
testlib/qasciikey: Add keypad navigation keys
Needed to prevent qasciikey.cpp from failing an assertion when
Qt::Key_Select is used in tests.
Change-Id: I56aa517e8f6f332636b3df106d7265677d1b33ee
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/testlib/qasciikey.cpp')
-rw-r--r-- | src/testlib/qasciikey.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testlib/qasciikey.cpp b/src/testlib/qasciikey.cpp index 28404ec37d..c6c72f5ebb 100644 --- a/src/testlib/qasciikey.cpp +++ b/src/testlib/qasciikey.cpp @@ -498,6 +498,11 @@ char QTest::keyToAscii(Qt::Key key) case Qt::Key_LaunchE : return 0; // = 0x10b0, case Qt::Key_LaunchF : return 0; // = 0x10b1, + // Keypad navigation keys + case Qt::Key_Select : return 0; // = 0x01010000 + case Qt::Key_Yes : return 0; // = 0x01010001 + case Qt::Key_No : return 0; // = 0x01010002 + default: QTEST_ASSERT(false); return 0; } } |