Minor QPlatformMenu API cleanup.