| 535 | } |
| 536 | |
| 537 | void AnnotationActionHandlerPrivate::assertToolBarExists(KParts::MainWindow *mw, const QString &toolBarName) |
| 538 | { |
| 539 | QList<KToolBar *> toolbars = mw->toolBars(); |
| 540 | auto itToolBar = std::find_if(toolbars.begin(), toolbars.end(), [&](const KToolBar *toolBar) { return toolBar->objectName() == toolBarName; }); |
| 541 | Q_ASSERT(itToolBar != toolbars.end()); |
| 542 | } |
| 543 | |
| 544 | // TODO: icon names should match getAnnotationInfo in gui/guiutils.cpp |
| 545 | AnnotationActionHandler::AnnotationActionHandler(PageViewAnnotator *parent, KActionCollection *ac) |
no test coverage detected