Changeset 57894 in vbox
- Timestamp:
- Sep 25, 2015 1:04:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIWindowMenuManager.cpp
r57893 r57894 253 253 m_windows.append(pWindow); 254 254 /* Add window to all menus we have: */ 255 QHash<QWidget*, UIMenuHelper*>::const_iterator i = m_helpers.constBegin(); 256 while (i != m_helpers.constEnd()) 257 { 258 i.value()->addWindow(pWindow); 259 ++i; 260 } 255 foreach (UIMenuHelper *pHelper, m_helpers.values()) 256 pHelper->addWindow(pWindow); 261 257 } 262 258 … … 264 260 { 265 261 /* Remove window from all menus we have: */ 266 QHash<QWidget*, UIMenuHelper*>::const_iterator i = m_helpers.constBegin(); 267 while (i != m_helpers.constEnd()) 268 { 269 i.value()->removeWindow(pWindow); 270 ++i; 271 } 262 foreach (UIMenuHelper *pHelper, m_helpers.values()) 263 pHelper->removeWindow(pWindow); 272 264 /* Unregister window: */ 273 265 m_windows.removeAll(pWindow); … … 277 269 { 278 270 /* Translate all the helpers: */ 279 QHash<QWidget*, UIMenuHelper*>::const_iterator i = m_helpers.constBegin(); 280 while (i != m_helpers.constEnd()) 281 { 282 i.value()->retranslateUi(); 283 ++i; 284 } 271 foreach (UIMenuHelper *pHelper, m_helpers.values()) 272 pHelper->retranslateUi(); 285 273 } 286 274 … … 321 309 { 322 310 QWidget *pActiveWindow = qApp->activeWindow(); 323 QHash<QWidget*, UIMenuHelper*>::const_iterator i = m_helpers.constBegin(); 324 while (i != m_helpers.constEnd()) 325 { 326 i.value()->updateStatus(pActiveWindow); 327 ++i; 328 } 311 foreach (UIMenuHelper *pHelper, m_helpers.values()) 312 pHelper->updateStatus(pActiveWindow); 329 313 } 330 314
Note:
See TracChangeset
for help on using the changeset viewer.