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 288 - generated code for enum with cast is invalid
: generated code for enum with cast is invalid
Status: CLOSED WONTFIX
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: All All
: P5 minor
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2010-08-10 10:43 EEST by renato filho
Modified: 2010-11-25 17:53 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description renato filho 2010-08-10 10:43:49 EEST
The shiboke code generated to this functions is invalid:

The function:

explicit MStyleSheetSelector(const QString &objectName = "",
                                   const QString &className = "",
                                   const QString &classType = "",
                                   const QString &orientation = "",
                                   const QString &mode = "",
                                   const QString &filename = "",
                                   const QString &parentName = "",
                                   Flags flags = (Flags) 0);


The generated code:

MStyleSheetSelector::Flags cpp_arg7 = pyargs[7] ?
Shiboken::Converter<MStyleSheetSelector::Flags >::toCpp(pyargs[7]) :
MStyleSheetSelector::(Flags) 0;

The cast used in declartion cause a shiboken confusion during the code
generation.
Comment 1 Lauro Moura 2010-10-19 11:36:54 EEST
Raising severity as this bug prevents MeeGo bindings from compiling.
Comment 2 Hugo Parente Lima 2010-10-19 12:06:32 EEST
There's a easy workaround for this bug, just change the
default-value-expression.
Comment 3 Matti Airas 2010-11-22 15:23:07 EET
I'm cleaning this up as WONTFIX. Reopen if necessary.
Comment 4 Hugo Parente Lima 2010-11-25 17:53:37 EET
Released on version 1.0.0~beta1