equal
deleted
inserted
replaced
461 toolbarItemsCopy.indexOf(item)); |
461 toolbarItemsCopy.indexOf(item)); |
462 #else |
462 #else |
463 NSToolbarItem *item = static_cast<NSToolbarItem *>(it.key()); |
463 NSToolbarItem *item = static_cast<NSToolbarItem *>(it.key()); |
464 [[qt_mac_window_for(layoutState.mainWindow->window()) toolbar] |
464 [[qt_mac_window_for(layoutState.mainWindow->window()) toolbar] |
465 removeItemAtIndex:toolbarItemsCopy.indexOf(item)]; |
465 removeItemAtIndex:toolbarItemsCopy.indexOf(item)]; |
466 // In Carbon this hash and list gets emptied via events. In Cocoa, we have to do it ourselves here. |
|
467 it = unifiedToolbarHash.erase(it); |
|
468 qtoolbarsInUnifiedToolbarList.removeAll(toolbar); |
|
469 #endif |
466 #endif |
470 break; |
467 break; |
471 } |
468 } |
472 ++it; |
469 ++it; |
473 } |
470 } |