[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KTextEditor enhancement
From: Bernd Gehrmann <bernd () physik ! hu-berlin ! de>
Date: 2001-10-08 9:49:58
[Download RAW message or body]
On Mon, 8 Oct 2001, Simon Hausmann wrote:
> UndoInterface *undo = dynamic_cast<UndoInterface *>( document );
> if ( !undo )
> return; // ...
>
> fooBar( undo->isRedoAvailable() );
>
> connect( document, SIGNAL( undoStatusChanged( bool ) ),
> bleh, SLOT( bar() ) );
But for this you have to declare the signal in the implementation
class, not in the interface? I mean, this works, because of the
dynamical nature of signal/slot connections, but the interface
is then not self-documenting anymore.
Bernd.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic