Saturday, July 6, 2013

Tfry: /* Merging several KXMLGUI definitions */ Add note on significance of the name-attribute.

‎Merging several KXMLGUI definitions: Add note on significance of the name-attribute.
← Older revision
Revision as of 16:54, 29 June 2010
Line 136:
Line 136: * Actions from component_a.rc are placed below actions from main_ui.rc, because MyComponentA gets added after MyMainWindow. Similarily, actions from component_b.rc are placed below those from main_ui.rc and component_a.rc. * Actions from component_a.rc are placed below actions from main_ui.rc, because MyComponentA gets added after MyMainWindow. Similarily, actions from component_b.rc are placed below those from main_ui.rc and component_a.rc. * When component_a.rc is read, a menu named "menu2" already exist, and is therefore merged with the existing one. Due to this, "menu3" gets appended at the end of the menubar, instead of between "menu1" and "menu2". Similarily the order of the definition of the menus in component_b.rc is effectively ignored, because those menus have already been defined, previously. * When component_a.rc is read, a menu named "menu2" already exist, and is therefore merged with the existing one. Due to this, "menu3" gets appended at the end of the menubar, instead of between "menu1" and "menu2". Similarily the order of the definition of the menus in component_b.rc is effectively ignored, because those menus have already been defined, previously. +* {{Note|When using several clients in a single application, each should be given a unique name as specified using <code xml><gui name="... - Full Post

No comments:

Post a Comment