| 251 | } |
| 252 | |
| 253 | void CodeEditor::registerVariables() |
| 254 | { |
| 255 | globalMacroExpander()->registerFileVariables("CurrentDocument", |
| 256 | tr("Current document"), |
| 257 | [this] { return QFileInfo(workspaceWidget->currentFile()); }); |
| 258 | globalMacroExpander()->registerVariable("CurrentDocument:Content", |
| 259 | tr("Current document content"), |
| 260 | [this] { return workspaceWidget->currentDocumentContent(); }); |
| 261 | } |
nothing calls this directly
no test coverage detected