MCPcopy Create free account
hub / github.com/TeXworks/texworks / getRootFilePath

Method getRootFilePath

src/document/TeXDocument.cpp:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89QString TeXDocument::getRootFilePath() const
90{
91 if (hasModeLine(QStringLiteral("root"))) {
92 const QString rootName{getModeLineValue(QStringLiteral("root")).trimmed()};
93 const QFileInfo rootFileInfo{getFileInfo().dir(), rootName};
94 return rootFileInfo.absoluteFilePath();
95 }
96
97 if (!isStoredInFilesystem()) {
98 return {};
99 }
100 return absoluteFilePath();
101}
102
103void TeXDocument::maybeUpdateModeLines(int position, int charsRemoved, int charsAdded)
104{

Callers 11

rootFileMethod · 0.45
foreachFunction · 0.45
getPreviewFileNameMethod · 0.45
typesetMethod · 0.45
goToTypesettingWindowMethod · 0.45
anchorClickedMethod · 0.45
isTypesettingMethod · 0.45
removeAuxFilesMethod · 0.45
getMainSourceFilenameMethod · 0.45

Calls 1

absoluteFilePathMethod · 0.45

Tested by 1

rootFileMethod · 0.36