[Kde-bindings] Problem with method ids not being set in virtual method callbacks

Richard Dale rdale at foton.es
Thu Oct 29 12:24:21 UTC 2009


In the qtgui only version of the smoke lib, the generator isn't correctly 
fixing up the method id in some virtual method callbacks. For instance, 
QWidget::timer event has 0:

    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(0, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }

Not all the methods in x_QWidget have zero method ids:

    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7740, (void*)this, x)) return 
(int)x[0].s_int;
        return this->QWidget::devType();
    }

So maybe it is a problem with virtual methods inherited across smoke module 
boundaries?

-- Richard



More information about the Kde-bindings mailing list