[Qt-jambi-interest] generator: unmatched return type for base class enum.

kyle cavin kyle.cavin at gmail.com
Sun Aug 23 02:40:41 CEST 2009


Hello,

I am running into a problem with enum return types with virtual functions.
example follows:

////////////////////////////////////////////////////////
The Code:

namespace NS {
class A {
public:
    enum SubType {
        T1, T2
    };

    virtual SubType subType() const = 0;

};

class B : public A {
public:
    SubType subType() const {
        return T1;
    }
};

} // namespace NS

////////////////////////////////////////////////////////
The Type System:

<typesystem default-superclass="com.trolltech.qt.QtJambiObject">
    <namespace-type name="NS" />

    <enum-type name="NS::A::SubType" />
    <object-type name="NS::A" />
    <object-type name="NS::B" />
</typesystem>

////////////////////////////////////////////////////////
The Error:

WARNING(MetaJavaBuilder) :: skipping function 'NS::B::subType', unmatched
return type 'SubType'

////////////////////////////////////////////////////////
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20090822/d7da2c33/attachment.html 


More information about the Qt-jambi-interest mailing list