Add manual test for shortcut using implicit AltGr
In German layout, "Ctrl+]" is "Ctrl+AltGr+9". Task-number: QTBUG-51848 Change-Id: I8c05c13a4d46c0818ce4f56ce476c5310a677af2 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
e4d838ff9d
commit
08f0253c4a
@ -92,16 +92,20 @@ protected:
|
||||
QPushButton *b12 = new QPushButton(sq12.toString());
|
||||
b12->setShortcut(sq12);
|
||||
|
||||
// LATIN SMALL LETTER O WITH STROKE
|
||||
QKeySequence sq13(QString(QChar(ushort(0xf8))));
|
||||
QKeySequence sq13(Qt::ControlModifier + Qt::Key_BracketRight);
|
||||
QPushButton *b13 = new QPushButton(sq13.toString());
|
||||
b13->setShortcut(sq13);
|
||||
|
||||
// CYRILLIC SMALL LETTER ZHE
|
||||
QKeySequence sq14(QString(QChar(ushort(0x436))));
|
||||
// LATIN SMALL LETTER O WITH STROKE
|
||||
QKeySequence sq14(QString(QChar(ushort(0xf8))));
|
||||
QPushButton *b14 = new QPushButton(sq14.toString());
|
||||
b14->setShortcut(sq14);
|
||||
|
||||
// CYRILLIC SMALL LETTER ZHE
|
||||
QKeySequence sq15(QString(QChar(ushort(0x436))));
|
||||
QPushButton *b15 = new QPushButton(sq15.toString());
|
||||
b15->setShortcut(sq15);
|
||||
|
||||
QLabel *testPurpose = new QLabel();
|
||||
testPurpose->setWordWrap(true);
|
||||
testPurpose->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Expanding);
|
||||
@ -120,10 +124,11 @@ protected:
|
||||
layout->addWidget(b10);
|
||||
layout->addWidget(b11);
|
||||
layout->addWidget(b12);
|
||||
layout->addWidget(new QLabel("Norwegian layout"));
|
||||
layout->addWidget(b13);
|
||||
layout->addWidget(new QLabel("Russian layout"));
|
||||
layout->addWidget(new QLabel("Norwegian layout"));
|
||||
layout->addWidget(b14);
|
||||
layout->addWidget(new QLabel("Russian layout"));
|
||||
layout->addWidget(b15);
|
||||
|
||||
setLayout(layout);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user