MCPcopy Create free account
hub / github.com/c3d/tao3D / isUserFile

Function isUserFile

tao/widget.cpp:4401–4415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4399#ifndef CFG_NO_DOC_SIGNATURE
4400#ifndef TAO_PLAYER
4401static bool isUserFile(QString path)
4402// ----------------------------------------------------------------------------
4403// True if file is not a Tao file (tao.xl, etc.) or module
4404// ----------------------------------------------------------------------------
4405{
4406 path = QFileInfo(path).absoluteFilePath();
4407 ModuleManager *mmgr = ModuleManager::moduleManager();
4408 QList<QDir> exclude;
4409 exclude << mmgr->userModuleDir() << mmgr->systemModuleDir()
4410 << QDir(Application::applicationDirPath());
4411 foreach (QDir dir, exclude)
4412 if (path.startsWith(dir.absolutePath()))
4413 return false;
4414 return true;
4415}
4416
4417
4418static QString attachSigatureInfoAndSign(XL::SourceFile &sf)

Callers 1

signDocumentMethod · 0.85

Calls 2

userModuleDirMethod · 0.80
systemModuleDirMethod · 0.80

Tested by

no test coverage detected