[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: QAction
From:       Simon Hausmann <shaus () uermel ! Med ! Uni-Magdeburg ! DE>
Date:       1999-10-22 11:35:47
[Download RAW message or body]


/me nods to reggie and torben :-)

Ciao,
 Simon

On Fri, 22 Oct 1999, Reginald Stadlbauer wrote:

> On Fri, 22 Oct 1999, weis wrote:
> >Hi,
> >
> >Since I dont like the way KAction inherits from QAction
> >(by copying most of QAction code in the new class)
> >I thought about a better API of QAction.
> >
> >It will work like this:
> >
> >class QAction
> >{
> >public:
> >   setText( const QString& text );
> >  .....
> >protected:
> >   setText( int index, const QString& text );
> >  .....
> >}:
> >
> >If QAction is plugged in some container it does not understand
> >(KToolBar for example) it calls the second setText function
> >with the index of the container in the first argument.
> >
> >That should dramtically reduce the code in KAction and friends.
> >
> >What do you think ?
> 
> I agree with everything which reduces the work which has to be done for
> KAction. I know KAction is kind of ugly, but I didnīt find a much better way to
> do it...
> 
> -- 
> Reggie
> 
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic