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 212 - Error in overloads with enums and unsigned numbers
: Error in overloads with enums and unsigned numbers
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: All All
: P5 normal
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2010-04-29 18:56 EEST by Lauro Moura
Modified: 2010-05-04 18:44 EEST (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 Lauro Moura 2010-04-29 18:56:22 EEST
Create two overloads like

void func(str, Enum, unsigned char=0)
void func(str, unsigned char=0)

And call the Enum version. Instead, the binding will call the second one,
converting the enum object to unsigned char.
Comment 1 Lauro Moura 2010-04-29 19:00:33 EEST
Test case available at my branch 'enum'.

http://qt.gitorious.org/~lauromoura/pyside/lauromoura-shiboken/commits/enum
Comment 2 Lauro Moura 2010-04-29 19:03:50 EEST
This also affects QHttp::setHost
Comment 3 Hugo Parente Lima 2010-04-30 18:35:07 EEST
Fixed in commit shiboken/60c2c6adecf05648e2938995f7f5c6969303d0ab