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 1027 - Shiboken generates broken code for namespaces with fields.
: Shiboken generates broken code for namespaces with fields.
Status: NEW
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: PC Linux
: P5 normal
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2011-10-20 20:57 EEST by Lauro Moura
Modified: 2012-03-08 16:57 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 Lauro Moura 2011-10-20 20:57:27 EEST
In Maliit (Formely MeeGo Input Method) there's a namespace with "const char*s"
inside. Shiboken is generating field accessors thinking the namespace is an
object, resulting in compilation errors.

Sample snippet from test case[1]:

static PyObject* Sbk_SampleNamespace_NestedNamespace_get_someValue(PyObject*
self, void*)
{
    ::SampleNamespace::NestedNamespace* cppSelf = 0;
    if (!Shiboken::Object::isValid(self))
        return 0;
    cppSelf = ;
    PyObject* value = Shiboken::Converter< const char *
>::toPython(cppSelf->someValue);
    return value;
}


[1]
https://github.com/lauromoura/Shiboken/commit/223293b76260c3676d4c2840d2726cd62c24eb5e
Comment 1 Matti Airas 2012-03-08 16:57:40 EET
PySide is now a Qt-addon and uses Qt Project's JIRA tool for tracking bugs.
Please verify that the bug is still valid and re-submit it in the address
below:

https://bugreports.qt-project.org/

Sorry for the inconvenience!