MCPcopy Create free account
hub / github.com/KDE/labplot / isTopLevel

Method isTopLevel

src/frontend/datasources/ImportProjectDialog.cpp:374–380  ·  view source on GitHub ↗

! checks whether \c aspect is one of the allowed top level types */

Source from the content-addressed store, hash-verified

372 checks whether \c aspect is one of the allowed top level types
373*/
374bool ImportProjectDialog::isTopLevel(const AbstractAspect* aspect) const {
375 for (auto type : m_projectParser->topLevelClasses()) {
376 if (aspect->inherits(type))
377 return true;
378 }
379 return false;
380}
381
382// ##############################################################################
383// ################################# SLOTS ####################################

Callers

nothing calls this directly

Calls 2

topLevelClassesMethod · 0.80
inheritsMethod · 0.80

Tested by

no test coverage detected