summaryrefslogtreecommitdiffstats
path: root/PySide/QtGui/typesystem_gui_common.xml
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-29 18:57:58 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-12-29 19:12:28 -0200
commit249a87808ac42644fecf9b8787b0ca6c757a2f4b (patch)
tree8f96239361a638abe09fa09f4efe063f62e1a3f7 /PySide/QtGui/typesystem_gui_common.xml
parentbc9ddff514dfe9b4f1c133a59ef63fe72e7c8be5 (diff)
downloadpyside-249a87808ac42644fecf9b8787b0ca6c757a2f4b.tar.gz
pyside-249a87808ac42644fecf9b8787b0ca6c757a2f4b.tar.xz
pyside-249a87808ac42644fecf9b8787b0ca6c757a2f4b.zip
Fix bug#493 - "__eq__ and friends not implemented for QKeyEvent == QKeySequence"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'PySide/QtGui/typesystem_gui_common.xml')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index 2998c59..be38ca9 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -128,7 +128,6 @@
<rejection class="QBrush" function-name="cleanUp"/>
<rejection class="QFont" enum-name="ResolveProperties"/>
<rejection class="QMotifStyle" field-name="focus"/>
- <rejection class="QKeyEvent" function-name="operator=="/>
<rejection class="QPictureIO" function-name="defineIOHandler"/>
<rejection class="QPolygon" function-name="putPoints"/>
<rejection class="QPolygon" function-name="setPoints"/>
@@ -2427,7 +2426,13 @@
<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">
+ <add-function signature="operator!=(QKeySequence::StandardKey)">
+ <inject-code class="target">
+ %PYARG_0 = %CONVERTTOPYTHON[bool](!(&amp;%CPPSELF == %1));
+ </inject-code>
+ </add-function>
+ </object-type>
<object-type name="QMouseEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::MouseButtonDblClick || %1-&gt;type() == QEvent::MouseButtonPress || %1-&gt;type() == QEvent::MouseButtonRelease || %1-&gt;type() == QEvent::MouseMove"/>
<object-type name="QPaintEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::Paint"/>
<object-type name="QAccessibleEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::AccessibilityDescription || %1-&gt;type() == QEvent::AccessibilityHelp"/>