CMakeProjectManager: Move CMakeIndenter class definition to .cpp

Leaner internal interface.

Change-Id: I297c74e667891efbeab0edabbfc82fb058501aa2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
hjk
2023-12-21 15:43:19 +01:00
parent bdeded45a9
commit cf4f221065
3 changed files with 24 additions and 16 deletions

View File

@@ -3,21 +3,10 @@
#pragma once
#include "cmake_global.h"
#include <texteditor/textindenter.h>
namespace CMakeProjectManager::Internal {
class CMAKE_EXPORT CMakeIndenter : public TextEditor::TextIndenter
{
public:
explicit CMakeIndenter(QTextDocument *doc);
bool isElectricCharacter(const QChar &ch) const override;
int indentFor(const QTextBlock &block,
const TextEditor::TabSettings &tabSettings,
int cursorPositionInEditor = -1) override;
};
TextEditor::Indenter *createCMakeIndenter(QTextDocument *doc);
} // CMakeProjectManager::Internal