aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/templates
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-04 10:27:49 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-04 11:04:04 +0000
commit5e731b27960848348250c9994f2c36c3a67c1565 (patch)
tree05a4018c517b042af0907ef2e93b871c5f9d776f /sources/pyside2/PySide2/templates
parenta17f4a90b1af174b38b839fc1b5bc0e933ad1725 (diff)
Add QKeyCombination
Rewrite __repr__ of QKeySequence to use QDebug since its operator[] now returns QKeyCombination. Added by qtbase/25351dcc549f1daddf5e2ae8a242191174342a3e. Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: Ia779b25385fff2192ff127e3898a365ed5e44863 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/PySide2/templates')
-rw-r--r--sources/pyside2/PySide2/templates/gui_common.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/templates/gui_common.xml b/sources/pyside2/PySide2/templates/gui_common.xml
index a139a5fe9..7cedd5af9 100644
--- a/sources/pyside2/PySide2/templates/gui_common.xml
+++ b/sources/pyside2/PySide2/templates/gui_common.xml
@@ -125,6 +125,15 @@
}
</template>
+ <template name="qkeysequence_repr">
+ QString result;
+ QDebug debug(&amp;result);
+ debug.noquote();
+ debug.nospace();
+ debug &lt;&lt; (*%CPPSELF);
+ %PYARG_0 = Shiboken::String::fromCString(result.toUtf8().constData());
+ </template>
+
<template name="validator_conversionrule">
QValidator::State %out;