summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@theqtcompany.com>2016-01-15 13:45:29 +0100
committerRobert Loehning <robert.loehning@theqtcompany.com>2016-01-20 12:50:11 +0000
commit49a61f35f34028c72deb8669a2162bbfd8e1a9fd (patch)
tree18396e6e18688a008c4b5e11c207ccaa815d8304
parent4de1d0cb2890b509e8b11a00d251bf3a5d337cba (diff)
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>
-rw-r--r--tests/manual/shortcuts/main.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/manual/shortcuts/main.cpp b/tests/manual/shortcuts/main.cpp
index 8553141d74..f62726612b 100644
--- a/tests/manual/shortcuts/main.cpp
+++ b/tests/manual/shortcuts/main.cpp
@@ -93,16 +93,20 @@ protected:
QPushButton *b11 = new QPushButton(sq11.toString());
b11->setShortcut(sq11);
- // LATIN SMALL LETTER O WITH STROKE
- QKeySequence sq12(QString(QChar(ushort(0xf8))));
+ QKeySequence sq12(Qt::ControlModifier + Qt::Key_Slash);
QPushButton *b12 = new QPushButton(sq12.toString());
b12->setShortcut(sq12);
- // CYRILLIC SMALL LETTER ZHE
- QKeySequence sq13(QString(QChar(ushort(0x436))));
+ // LATIN SMALL LETTER O WITH STROKE
+ QKeySequence sq13(QString(QChar(ushort(0xf8))));
QPushButton *b13 = new QPushButton(sq13.toString());
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();
testPurpose->setWordWrap(true);
testPurpose->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Expanding);
@@ -120,10 +124,11 @@ protected:
layout->addWidget(b9);
layout->addWidget(b10);
layout->addWidget(b11);
- layout->addWidget(new QLabel("Norwegian layout"));
layout->addWidget(b12);
- layout->addWidget(new QLabel("Russian layout"));
+ layout->addWidget(new QLabel("Norwegian layout"));
layout->addWidget(b13);
+ layout->addWidget(new QLabel("Russian layout"));
+ layout->addWidget(b14);
setLayout(layout);
}