Changeset 57893 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 25, 2015 12:59:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UIWindowMenuManager.cpp
r57892 r57893 78 78 QAction *pAction = 0; 79 79 if ( pWindow 80 && !m_windows.contains(pWindow ->windowTitle()))80 && !m_windows.contains(pWindow)) 81 81 { 82 82 if (m_windows.size() < 2) … … 96 96 this, SLOT(sltRaiseSender())); 97 97 m_pWindowMenu->addAction(pAction); 98 m_windows[pWindow ->windowTitle()] = pAction;98 m_windows[pWindow] = pAction; 99 99 } 100 100 return pAction; … … 104 104 void removeWindow(QWidget *pWindow) 105 105 { 106 if (m_windows.contains(pWindow ->windowTitle()))107 { 108 delete m_windows.value(pWindow ->windowTitle());109 m_windows.remove(pWindow ->windowTitle());106 if (m_windows.contains(pWindow)) 107 { 108 delete m_windows.value(pWindow); 109 m_windows.remove(pWindow); 110 110 } 111 111 } … … 131 131 { 132 132 /* Toggle corresponding action on: */ 133 if (m_windows.contains(pActiveWindow ->windowTitle()))134 m_windows.value(pActiveWindow ->windowTitle())->setChecked(true);133 if (m_windows.contains(pActiveWindow)) 134 m_windows.value(pActiveWindow)->setChecked(true); 135 135 } 136 136 /* If there is no active-window: */ … … 176 176 QAction *m_pMinimizeAction; 177 177 /** Holds the hash of the registered menu-helper instances. */ 178 QHash<Q String, QAction*> m_windows;178 QHash<QWidget*, QAction*> m_windows; 179 179 }; 180 180
Note:
See TracChangeset
for help on using the changeset viewer.