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 289 - Fail to generate code for Value type with virtual methods
: Fail to generate code for Value type with virtual methods
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: All All
: P5 normal
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2010-08-10 11:44 EEST by renato filho
Modified: 2010-09-10 19:21 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 renato filho 2010-08-10 11:44:24 EEST
code generated by shiboken for the following class does not compile.

class M_EXPORT MCollator
{
public:
    MCollator();
    MCollator(const MLocale &locale);
    MCollator(const MCollator &other);
    virtual ~MCollator();

    bool operator()(const QString &s1, const QString &s2) const;

    static MLocale::Comparison compare(const QString &first, const QString
&second);

    static MLocale::Comparison compare(MLocale &locale, const QString &first,
                                         const QString &second);

private:
    // not implemented
    bool operator==(const MCollator &other) const;
    bool operator!=(const MCollator &other) const;
    MCollator &operator=(const MCollator &other);

    Q_DECLARE_PRIVATE(MCollator)
    MCollatorPrivate *const d_ptr;

    friend class MLocale;
};
Comment 1 renato filho 2010-08-11 18:08:45 EEST
fixed on commit:

commit aad615fa4821d6d101af71b3d05e15ac41f365ab
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Wed Aug 11 17:22:42 2010 -0300

    Detect operator() as operator overload.