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

List:       kde-core-devel
Subject:    Re: QAction
From:       Reginald Stadlbauer <reggie () troll ! no>
Date:       1999-10-22 11:18:29
[Download RAW message or body]

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