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'

////////////////////////////////////////////////////////
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to