equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
358 code = text.at(0).unicode(); |
358 code = text.at(0).unicode(); |
359 } |
359 } |
360 |
360 |
361 if (code && code < 0xfffe) |
361 if (code && code < 0xfffe) |
362 code = QChar(code).toUpper().unicode(); |
362 code = QChar(code).toUpper().unicode(); |
|
363 |
|
364 if (code == Qt::Key_Tab && (baseModifiers & Qt::ShiftModifier)) { |
|
365 // map shift+tab to shift+backtab |
|
366 code = Qt::Key_Backtab; |
|
367 text = QString(); |
|
368 } |
|
369 |
363 if (code == baseCode) |
370 if (code == baseCode) |
364 continue; |
371 continue; |
365 |
372 |
366 result += (code | modifiers); |
373 result += (code | modifiers); |
367 } |
374 } |
446 code = text.at(0).unicode(); |
453 code = text.at(0).unicode(); |
447 } |
454 } |
448 |
455 |
449 if (code && code < 0xfffe) |
456 if (code && code < 0xfffe) |
450 code = QChar(code).toUpper().unicode(); |
457 code = QChar(code).toUpper().unicode(); |
|
458 |
|
459 if (code == Qt::Key_Tab && (baseModifiers & Qt::ShiftModifier)) { |
|
460 // map shift+tab to shift+backtab |
|
461 code = Qt::Key_Backtab; |
|
462 text = QString(); |
|
463 } |
|
464 |
451 if (code == baseCode) |
465 if (code == baseCode) |
452 continue; |
466 continue; |
453 |
467 |
454 result += (code | modifiers); |
468 result += (code | modifiers); |
455 } |
469 } |