This makes createAction explicitly take KActionCollection as a parameter and ensures that the name is set correctly in the collection. Fixes the XMLGui Window Menu that was broken with b89cc61d.