Add manual test for shortcut using implicit shift
In German layout, "Ctrl+/" is "Ctrl+Shift+7". Change-Id: I50f3d77c4c76e7eb7cffe31283a3b73074324fea Task-number: QTBUG-47122 Task-number: QTBUG-50360 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
This commit is contained in:
parent
4de1d0cb28
commit
49a61f35f3
@ -93,16 +93,20 @@ protected:
|
|||||||
QPushButton *b11 = new QPushButton(sq11.toString());
|
QPushButton *b11 = new QPushButton(sq11.toString());
|
||||||
b11->setShortcut(sq11);
|
b11->setShortcut(sq11);
|
||||||
|
|
||||||
// LATIN SMALL LETTER O WITH STROKE
|
QKeySequence sq12(Qt::ControlModifier + Qt::Key_Slash);
|
||||||
QKeySequence sq12(QString(QChar(ushort(0xf8))));
|
|
||||||
QPushButton *b12 = new QPushButton(sq12.toString());
|
QPushButton *b12 = new QPushButton(sq12.toString());
|
||||||
b12->setShortcut(sq12);
|
b12->setShortcut(sq12);
|
||||||
|
|
||||||
// CYRILLIC SMALL LETTER ZHE
|
// LATIN SMALL LETTER O WITH STROKE
|
||||||
QKeySequence sq13(QString(QChar(ushort(0x436))));
|
QKeySequence sq13(QString(QChar(ushort(0xf8))));
|
||||||
QPushButton *b13 = new QPushButton(sq13.toString());
|
QPushButton *b13 = new QPushButton(sq13.toString());
|
||||||
b13->setShortcut(sq13);
|
b13->setShortcut(sq13);
|
||||||
|
|
||||||
|
// CYRILLIC SMALL LETTER ZHE
|
||||||
|
QKeySequence sq14(QString(QChar(ushort(0x436))));
|
||||||
|
QPushButton *b14 = new QPushButton(sq14.toString());
|
||||||
|
b14->setShortcut(sq14);
|
||||||
|
|
||||||
QLabel *testPurpose = new QLabel();
|
QLabel *testPurpose = new QLabel();
|
||||||
testPurpose->setWordWrap(true);
|
testPurpose->setWordWrap(true);
|
||||||
testPurpose->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Expanding);
|
testPurpose->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Expanding);
|
||||||
@ -120,10 +124,11 @@ protected:
|
|||||||
layout->addWidget(b9);
|
layout->addWidget(b9);
|
||||||
layout->addWidget(b10);
|
layout->addWidget(b10);
|
||||||
layout->addWidget(b11);
|
layout->addWidget(b11);
|
||||||
layout->addWidget(new QLabel("Norwegian layout"));
|
|
||||||
layout->addWidget(b12);
|
layout->addWidget(b12);
|
||||||
layout->addWidget(new QLabel("Russian layout"));
|
layout->addWidget(new QLabel("Norwegian layout"));
|
||||||
layout->addWidget(b13);
|
layout->addWidget(b13);
|
||||||
|
layout->addWidget(new QLabel("Russian layout"));
|
||||||
|
layout->addWidget(b14);
|
||||||
|
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user