From 69a0f1654710ba9dc708c968c7312b48038774dd Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 22 Feb 2024 23:01:06 +0100 Subject: TextEditor: Hide FormatTask in cpp file Unexport it. Change-Id: Ib2e73486e31d115a3e960c7bb4420014172313a7 Reviewed-by: David Schulz --- src/plugins/texteditor/formattexteditor.cpp | 12 ++++++++++++ src/plugins/texteditor/formattexteditor.h | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/plugins/texteditor') 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); -- cgit v1.2.3