aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine.cpp
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2023-06-05 14:54:28 +0200
committerSami Shalayel <sami.shalayel@qt.io>2023-06-07 16:26:23 +0200
commita4de7389bf90ab62c5d12391f9bb0d03da9b4b82 (patch)
tree60a9bacb52bb080bd8ca72fa87f4ac15e9cbea3a /src/qml/jsruntime/qv4engine.cpp
parentcb82b9f2addf25db34970ebb48f69291901ad7ba (diff)
QQuickLabsPlatformMenuItem: accept KeySequence in shortcut
The documentation claims that the shortcut of a menuitem can be bound to a QKeySequence (or at least the qml version of it) but menuitem actually only supports int or strings (that are wrapped into a QVariant). Implement the missing codepath for passing QKeySequence in the QVariant for C++ users, instead of constructing a garbage QKeySequence from the string obtained by QKeySequence::toString(). Fixes: QTBUG-113743 Pick-to: 6.5 6.6 Change-Id: I6f4c659a79a4c23de34be92770815d9e14a6a554 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
0 files changed, 0 insertions, 0 deletions