//Before KAction * action = KStandardGameAction::gameNew( this, SLOT(newGame()), this); actionCollection()->addAction(action->objectName(), action); //After KStandardGameAction::gameNew( this, SLOT(newGame()), actionCollection() );