summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-04-28 11:20:32 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:16 -0300
commitb2ddb6c1cd46f6e56962fd64731aaa6a85a36855 (patch)
treeadf0a707f2c5f62feeaa1da18a1ed41bfa5ecdb4
parent17a4a02354482045a0a8c1f3ec65c058d4b265ef (diff)
Fixed QKeyEvent polymorphic-id-expression to support QEvent::ShortcutOverride.
Applyed patch from Evan Patterson <epatters@enthought.com> Fixes bug #833 Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index f15020db..6f508651 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -2800,7 +2800,7 @@
<object-type name="QInputEvent" copyable="false">
<modify-function signature="modifiers()const" access="non-final"/>
</object-type>
- <object-type name="QKeyEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::KeyPress || %1-&gt;type() == QEvent::KeyRelease">
+ <object-type name="QKeyEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::KeyPress || %1-&gt;type() == QEvent::KeyRelease || %1-&gt;type() == QEvent::ShortcutOverride">
<add-function signature="operator!=(QKeySequence::StandardKey)">
<inject-code class="target">
%PYARG_0 = %CONVERTTOPYTHON[bool](!(&amp;%CPPSELF == %1));