diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-02-22 23:01:06 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-02-26 15:19:08 +0000 |
commit | 69a0f1654710ba9dc708c968c7312b48038774dd (patch) | |
tree | eb1d99075dff6925deab551a6d9b500e94b264cd /src/plugins/texteditor | |
parent | fc59b375ff9638672d02abf49c437bd5c3c5ee35 (diff) |
TextEditor: Hide FormatTask in cpp file
Unexport it.
Change-Id: Ib2e73486e31d115a3e960c7bb4420014172313a7
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor')
-rw-r--r-- | src/plugins/texteditor/formattexteditor.cpp | 12 | ||||
-rw-r--r-- | src/plugins/texteditor/formattexteditor.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/texteditor/formattexteditor.cpp b/src/plugins/texteditor/formattexteditor.cpp index caebeb8c23..d4d1d61636 100644 --- a/src/plugins/texteditor/formattexteditor.cpp +++ b/src/plugins/texteditor/formattexteditor.cpp @@ -27,6 +27,18 @@ using namespace std::chrono_literals; namespace TextEditor { +class FormatTask +{ +public: + Utils::FilePath filePath; + QString sourceData; + TextEditor::Command command; + int startPos = -1; + int endPos = 0; + QString formattedData = {}; + QString error = {}; +}; + void formatCurrentFile(const Command &command, int startPos, int endPos) { if (TextEditorWidget *editor = TextEditorWidget::currentTextEditorWidget()) diff --git a/src/plugins/texteditor/formattexteditor.h b/src/plugins/texteditor/formattexteditor.h index fc66b87459..929763ecba 100644 --- a/src/plugins/texteditor/formattexteditor.h +++ b/src/plugins/texteditor/formattexteditor.h @@ -15,18 +15,6 @@ namespace TextEditor { class TextEditorWidget; -class TEXTEDITOR_EXPORT FormatTask -{ -public: - Utils::FilePath filePath; - QString sourceData; - TextEditor::Command command; - int startPos = -1; - int endPos = 0; - QString formattedData = {}; - QString error = {}; -}; - TEXTEDITOR_EXPORT void formatCurrentFile(const TextEditor::Command &command, int startPos = -1, int endPos = 0); TEXTEDITOR_EXPORT void formatEditor(TextEditorWidget *editor, const TextEditor::Command &command, int startPos = -1, int endPos = 0); |