aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor')
-rw-r--r--src/plugins/texteditor/formattexteditor.cpp12
-rw-r--r--src/plugins/texteditor/formattexteditor.h12
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);