PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 154 - QSignalMapper.setMapping(sender, text) signature missing
: QSignalMapper.setMapping(sender, text) signature missing
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-02-19 13:02 EET by Bruno Araujo
Modified: 2010-03-24 14:40 EET (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Araujo 2010-02-19 13:02:36 EET
Running the example mainwindows/mdi/mdi.py, creating some docs and clicking in
the Window menu results in:

Error calling slot "updateWindowMenu" 
Traceback (most recent call last):
  File "mdi.py", line 264, in updateWindowMenu
    self.windowMapper.setMapping(action, child)
AttributeError: 'QSignalMapper' object has no attribute 'setMapping'

The signature should be there, as it is present in the docs: 
http://www.pyside.org/docs/pyside/PySide/QtCore/QSignalMapper.html?highlight=qsignalmapper#PySide.QtCore.QSignalMapper.setMapping
Comment 1 Bruno Araujo 2010-02-19 17:28:31 EET
The setMapping() function was renamed as three separate ones (setMappingById,
setMappingByString, setMappingByObject), and also the mapped() function follows
this behavior. Maybe this renaming was inherited from ancient versions of the
typesystem? Anyway, fixed, pending merge request.