Fix autotest tst_QAction::setStandardKeys()

The possible key sequences for QKeySequence::Copy on X11 is Ctrl+C, then
Ctrl+Insert and at last F16. The order is defined in
QPlatformThemePrivate::keyBindings.

Task-number: QTBUG-46053
Change-Id: I86a0767e268088edfce98cfb07f9fb78f00d0713
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
This commit is contained in:
Christian Ehrlicher 2018-02-10 21:08:00 +01:00
parent c168838f7d
commit 383d2eaab4
2 changed files with 1 additions and 3 deletions

View File

@ -1,2 +0,0 @@
[setStandardKeys]
linux

View File

@ -240,7 +240,7 @@ void tst_QAction::setStandardKeys()
expected << ctrlC << ctrlInsert;
break;
default: // X11
expected << ctrlC << QKeySequence(QStringLiteral("F16")) << ctrlInsert;
expected << ctrlC << ctrlInsert << QKeySequence(QStringLiteral("F16"));
break;
}