| 87 | } |
| 88 | |
| 89 | QString 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 | |
| 103 | void TeXDocument::maybeUpdateModeLines(int position, int charsRemoved, int charsAdded) |
| 104 | { |