added ascii translations to qasciikey for keyup and keydown

Change-Id: I7645392b437bdaa5e981dbf07cac70ee1653b624
Reviewed-on: http://codereview.qt-project.org/4689
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Matthew Cattell 2011-09-12 17:33:42 +02:00 committed by Samuel Rødal
parent fa42faaee5
commit d96057f8f4
2 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,8 @@ Qt::Key QTest::asciiToKey(char ascii)
case 0x0b: return Qt::Key_Backtab;
case 0x0d: return Qt::Key_Return;
case 0x1b: return Qt::Key_Escape;
case 0x13: return Qt::Key_Up;
case 0x15: return Qt::Key_Down;
case 0x20: return Qt::Key_Space;
case 0x21: return Qt::Key_Exclam;
case 0x22: return Qt::Key_QuoteDbl;

View File

@ -162,7 +162,6 @@ namespace QTest
{
QTEST_ASSERT(qApp);
QTEST_ASSERT(window);
QTEST_ASSERT(window->windowState() == Qt::WindowActive);
if (action == Click) {
sendKeyEvent(Press, window, code, text, modifier, delay);