| 28 | } |
| 29 | |
| 30 | void LibrariesMenuActionCustomizer::update( MenuAction *action ) |
| 31 | { |
| 32 | if (winOS->GetLibraryManager()) |
| 33 | { |
| 34 | clearSubMenus(action); |
| 35 | QListIterator< QSharedPointer<Library> > libIt(winOS->GetLibraryManager()->getLibraries()); |
| 36 | while (libIt.hasNext()) |
| 37 | { |
| 38 | QSharedPointer<Library> library = libIt.next(); |
| 39 | action->subMenu.push_back(MenuAction(KeyCombo(), true, library->getName(), QT_TR_NOOP("Switch to this library"), 1.0f, 100.0f, Ellipsis, Nothing, NULL, NULL, new LibrarySubMenuActionCustomizer(library))); |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | void LibrariesMenuActionCustomizer::clearSubMenus(MenuAction *action) |
| 45 | { |
nothing calls this directly
no test coverage detected