Bug in KAction::initPrivate

Ellis Whitehead ellis at kde.org
Tue Sep 24 18:34:10 BST 2002

On Tuesday 24 September 2002 17:25, Michael Brade wrote:
> ...
> Hmm, can't do this as the integer is dynamic. I use the following code:
>     m_toDesktop = new KListAction( i18n("To Desktop"), 0, this,
> SLOT(slotToDesktop(int)), actionCollection(), "to_desktop" );
> to construct a listaction, containing all available desktops. Problem: the
> connection to slotToDesktop(int) doesn't work anymore with the new code in
> KAction. 

The code isn't particularly new: at least since April, I think.  The code 
snippet above couldn't have worked before, anyhow, because 
SLOT(slotToDesktop(int)) can only be connected to a signal which takes a 
single integer: e.g., SIGNAL(mySignal(int)).

What kind of value is slotToDesktop(int) method expecting to receive?


More information about the kde-core-devel mailing list