summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-27 17:00:56 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-28 09:31:50 +0000
commit6e07df8aeeeca19f392220dddb9a3b62608032c9 (patch)
treebb922aaee352117f697a5b1932b065104c7a3cb1
parent9f5ba84b85790017bcd8c04c6cb570b7251155fd (diff)
Use QKeyCombination to fix compiler warning
Avoid deprecated implicit cast to int. Change-Id: If89381eda7d92a1b17005d91472070b6ba31fb66 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit a2cf615516309d2baac503444c439ecab7e40ab3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
index 83d0fd9d27..ab35e374c7 100644
--- a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
+++ b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
@@ -292,7 +292,7 @@ void tst_qquicktextedit::simulateKeys(QWindow *window, const QKeySequence &seque
QList<Key> &operator <<(QList<Key> &keys, const QKeySequence &sequence)
{
for (int i = 0; i < sequence.count(); ++i)
- keys << Key(sequence[i], QChar());
+ keys << Key(sequence[i].toCombined(), QChar());
return keys;
}