Bug 78273 - QtRuby, slots aren't inherited
Summary: QtRuby, slots aren't inherited
Status: RESOLVED WORKSFORME
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 02:33 UTC by Imobach González Sosa
Modified: 2004-07-19 20:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Imobach González Sosa 2004-03-23 02:33:35 UTC
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.
Comment 1 Imobach González Sosa 2004-07-19 16:17:28 UTC
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.
Comment 2 Richard Dale 2004-07-19 20:04:04 UTC
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