kde-bindings@kde.org
[Top] [All Lists]

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

Subject: [Kde-bindings] Problem with method ids not being set in virtual method callbacks
From: Richard Dale
Date: Thu, 29 Oct 2009 12:24:21 +0000
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@xxxxxxx
https://mail.kde.org/mailman/listinfo/kde-bindings

<Prev in Thread] Current Thread [Next in Thread>
  • [Kde-bindings] Problem with method ids not being set in virtual method callbacks, Richard Dale <=