Changeset 52471 in vbox
- Timestamp:
- Aug 22, 2014 12:27:21 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95686
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r52401 r52471 115 115 } 116 116 117 void UIMachineWindowNormal::sltHandleMenuBarConfigurationChange() 118 { 119 /* Update menu-bar: */ 120 updateMenu(); 121 } 122 117 123 void UIMachineWindowNormal::sltHandleStatusBarConfigurationChange() 118 124 { … … 206 212 AssertPtrReturnVoid(menuBar()); 207 213 { 208 /* Prepare menu-bar: */ 209 foreach (QMenu *pMenu, actionPool()->menus()) 210 menuBar()->addMenu(pMenu); 214 /* Post-configure menu-bar: */ 215 connect(gEDataManager, SIGNAL(sigMenuBarConfigurationChange()), 216 this, SLOT(sltHandleMenuBarConfigurationChange())); 217 /* Update menu-bar: */ 218 updateMenu(); 211 219 } 212 220 } … … 500 508 } 501 509 510 void UIMachineWindowNormal::updateMenu() 511 { 512 /* Rebuild menu-bar: */ 513 menuBar()->clear(); 514 foreach (QMenu *pMenu, actionPool()->menus()) 515 menuBar()->addMenu(pMenu); 516 } 517 502 518 bool UIMachineWindowNormal::isMaximizedChecked() 503 519 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r52129 r52471 59 59 void sltCPUExecutionCapChange(); 60 60 61 /** Handles status-bar configuration-change: */ 61 /** Handles menu-bar configuration-change. */ 62 void sltHandleMenuBarConfigurationChange(); 63 64 /** Handles status-bar configuration-change. */ 62 65 void sltHandleStatusBarConfigurationChange(); 63 /** Handles status-bar context-menu-request :*/66 /** Handles status-bar context-menu-request. */ 64 67 void sltHandleStatusBarContextMenuRequest(const QPoint &position); 65 /** Handles status-bar indicator context-menu-request :*/68 /** Handles status-bar indicator context-menu-request. */ 66 69 void sltHandleIndicatorContextMenuRequest(IndicatorType indicatorType, const QPoint &position); 67 70 … … 95 98 void updateAppearanceOf(int aElement); 96 99 100 /** Updates menu-bar content. */ 101 void updateMenu(); 102 97 103 /* Event handler: */ 98 104 bool event(QEvent *pEvent);
Note:
See TracChangeset
for help on using the changeset viewer.