aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/codesniphelpers.cpp
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2019-01-11 10:13:14 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-18 15:28:28 +0200
commita45ee7a68e3fbcf99eb31e8a395779cc0a9f3540 (patch)
treedf3bde78213e01af6037a54e7ac553b61e302f18 /sources/shiboken6/ApiExtractor/codesniphelpers.cpp
parentfd3dbb4678526535bb3e50d39dd69d590304890b (diff)
PySide6: Add QKey support for the setShortcut method
When this method is used in Qt/C++, the argument gets internally cast to a QKeyCombination if it is a QKey, but in Python land this is not automatically covered. A workaround was for the users to manually cast the QKey, but this adds an extra step to achieve the same. This patch adds a new method to QAction and QAbstractButton to use setShortcut with a QKey as an argument. Pick-to: 6.1 Change-Id: I9e9ebe16a65cb5aeb26a367faecbbbd414d80e03 Fixes: PYSIDE-907 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/codesniphelpers.cpp')
0 files changed, 0 insertions, 0 deletions