Problem with method ids not being set in virtual method callbacks

View: New views
1 Messages — Rating Filter:   Alert me  

Problem with method ids not being set in virtual method callbacks

by Richard Dale-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Kde-bindings mailing list
Kde-bindings@...
https://mail.kde.org/mailman/listinfo/kde-bindings