Add more key names to QKeySequence.

So that, for example,

qDebug() << QKeySequence(Qt::Key_Cancel).toString();

prints "Cancel" instead of "ᡀ".

Task-number: QTBUG-953

Change-Id: Ib17fc314fd018355e6a1826d26fce85fdcbbe0c8
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
bb10
Mitch Curtis 2013-08-06 12:50:57 +02:00 committed by The Qt Project
parent 339aff06f9
commit aec0a21f7e
1 changed files with 8 additions and 0 deletions

View File

@ -637,6 +637,14 @@ static const struct {
{ Qt::Key_Hangul_PostHanja,QT_TRANSLATE_NOOP("QShortcut", "Hangul PostHanja") },
{ Qt::Key_Hangul_Special, QT_TRANSLATE_NOOP("QShortcut", "Hangul Special") },
// --------------------------------------------------------------
// Miscellaenous keys
{ Qt::Key_Cancel, QT_TRANSLATE_NOOP("QShortcut", "Cancel") },
{ Qt::Key_Printer, QT_TRANSLATE_NOOP("QShortcut", "Printer") },
{ Qt::Key_Execute, QT_TRANSLATE_NOOP("QShortcut", "Execute") },
{ Qt::Key_Play, QT_TRANSLATE_NOOP("QShortcut", "Play") },
{ Qt::Key_Zoom, QT_TRANSLATE_NOOP("QShortcut", "Zoom") },
{ 0, 0 }
};