MCPcopy Create free account
hub / github.com/KDE/okular / assertToolBarExists

Method assertToolBarExists

part/annotationactionhandler.cpp:537–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void 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
545AnnotationActionHandler::AnnotationActionHandler(PageViewAnnotator *parent, KActionCollection *ac)

Calls 1

endMethod · 0.45

Tested by

no test coverage detected