[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Programming question
From: Harri Porten <harri () trolltech ! com>
Date: 2001-01-25 20:09:00
[Download RAW message or body]
Michael Jarrett wrote:
>
> What I meant is the parent class needs to have signals as well. Ie ObjA
> inheriting KMainWindow and Obj2 where Obj2 would like to inherit
> QWidget. Obj2 has to work independantly as a widget, but I also want to
> inherit the functionality into ObjA, as so to avoid duplicating the
> code.
Can't you compose those classes by making on a member variable of the
other ? This way you don't have to duplicate any code except some
connect() calls to forward signals.
Harri.
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic