| Summary: | QtRuby, slots aren't inherited | ||
|---|---|---|---|
| Product: | [Unmaintained] bindings | Reporter: | Imobach González Sosa <imobachgs> |
| Component: | general | Assignee: | bindings-bugs-null |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
This bug was fixed on 03/26/2004, as you can read in the QtRuby's ChangeLog (by Richard Dale): * Ruby slots and signals are now inherited correctly Sorry for being late to close this bug. On Monday 19 July 2004 15:17, Imobach "González" Sosa wrote: > ------- You are receiving this mail because: ------- > You are the assignee for the bug, or are watching the assignee. > > http://bugs.kde.org/show_bug.cgi?id=78273 > imobachgs softhome net changed: > > What |Removed |Added > --------------------------------------------------------------------------- >- Status|UNCONFIRMED |RESOLVED > Resolution| |WORKSFORME > > > > ------- Additional Comments From imobachgs softhome net 2004-07-19 16:17 > ------- This bug was fixed on 03/26/2004, as you can read in the QtRuby's > ChangeLog (by Richard Dale): > > * Ruby slots and signals are now inherited correctly Thanks! Note - I also add this to ChangeLog: * Fixes bug 78273 reported by Imobach Sosa I like to always credit someone who has contributed a bug report/fix etc from the ChangeLog, and then we can extract the names for inclusion in the AUTHORS credits. I don't know how to use the kde bug reporting system - it has never really made sense for reporting kdebindings bugs. All people tend to do is to report that kdebindings doesn't build because a kdelibs header has changed. -- Richard |
Version: (using KDE KDE 3.2.1) Installed from: Compiled From Sources Compiler: gcc versión 3.3.3 (Debian) Inheritance mechanism doesn't work for 'slots' defined by user. So, when using inheritance, the descendant class must specify slots in its own definition. Example: we have a class 'Form1' that have a slot (ie. newSlot). If we try to use a 'child' class ('Form'), the slots from 'Form1' aren't inherited. So, we get this error message: QObject::connect: No such slot Form::newSlot() QObject::connect: (sender name: '@pushButton1') QObject::connect: (receiver name: 'unnamed') If we specify in Form the slot, it works pretty well: slots 'newSlot()' So, it seems that slots definition must be inherited. Thank you.