Commit 0fcca946 authored by hjk's avatar hjk

Rename {Core,TextEditor},{Base,}TextDocument classes

First step of some more 'Base' removal in TextEditor.
s/Core::TextDocument/Core::BaseTextDocument/
s/TextEditor::BaseTextDocument/TextEditor::TextDocument/

Change-Id: I71ba325a2f0ad72ec9dae0d96846cbae72d326f7
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 33670d22
...@@ -50,7 +50,7 @@ AndroidManifestDocument::AndroidManifestDocument(AndroidManifestEditorWidget *ed ...@@ -50,7 +50,7 @@ AndroidManifestDocument::AndroidManifestDocument(AndroidManifestEditorWidget *ed
bool AndroidManifestDocument::save(QString *errorString, const QString &fileName, bool autoSave) bool AndroidManifestDocument::save(QString *errorString, const QString &fileName, bool autoSave)
{ {
m_editorWidget->preSave(); m_editorWidget->preSave();
return BaseTextDocument::save(errorString, fileName, autoSave); return TextDocument::save(errorString, fileName, autoSave);
} }
QString AndroidManifestDocument::defaultPath() const QString AndroidManifestDocument::defaultPath() const
...@@ -67,7 +67,7 @@ QString AndroidManifestDocument::suggestedFileName() const ...@@ -67,7 +67,7 @@ QString AndroidManifestDocument::suggestedFileName() const
bool AndroidManifestDocument::isModified() const bool AndroidManifestDocument::isModified() const
{ {
return BaseTextDocument::isModified() || m_editorWidget->isModified(); return TextDocument::isModified() || m_editorWidget->isModified();
} }
bool AndroidManifestDocument::isSaveAsAllowed() const bool AndroidManifestDocument::isSaveAsAllowed() const
......
...@@ -37,7 +37,7 @@ namespace Internal { ...@@ -37,7 +37,7 @@ namespace Internal {
class AndroidManifestEditorWidget; class AndroidManifestEditorWidget;
class AndroidManifestDocument : public TextEditor::BaseTextDocument class AndroidManifestDocument : public TextEditor::TextDocument
{ {
public: public:
explicit AndroidManifestDocument(AndroidManifestEditorWidget *editorWidget); explicit AndroidManifestDocument(AndroidManifestEditorWidget *editorWidget);
......
...@@ -66,7 +66,7 @@ public: ...@@ -66,7 +66,7 @@ public:
// JavaDocument // JavaDocument
// //
class JavaDocument : public TextEditor::BaseTextDocument class JavaDocument : public TextEditor::TextDocument
{ {
public: public:
JavaDocument(); JavaDocument();
......
...@@ -90,7 +90,7 @@ QList<TextEditor::BlockRange> toTextEditorBlocks( ...@@ -90,7 +90,7 @@ QList<TextEditor::BlockRange> toTextEditorBlocks(
namespace ClangCodeModel { namespace ClangCodeModel {
ClangEditorDocumentProcessor::ClangEditorDocumentProcessor(TextEditor::BaseTextDocument *document) ClangEditorDocumentProcessor::ClangEditorDocumentProcessor(TextEditor::TextDocument *document)
: BaseEditorDocumentProcessor(document) : BaseEditorDocumentProcessor(document)
, m_parser(document->filePath()) , m_parser(document->filePath())
, m_parserRevision(0) , m_parserRevision(0)
......
...@@ -46,7 +46,7 @@ class ClangEditorDocumentProcessor : public CppTools::BaseEditorDocumentProcesso ...@@ -46,7 +46,7 @@ class ClangEditorDocumentProcessor : public CppTools::BaseEditorDocumentProcesso
Q_OBJECT Q_OBJECT
public: public:
ClangEditorDocumentProcessor(TextEditor::BaseTextDocument *document); ClangEditorDocumentProcessor(TextEditor::TextDocument *document);
~ClangEditorDocumentProcessor(); ~ClangEditorDocumentProcessor();
// BaseEditorDocumentProcessor interface // BaseEditorDocumentProcessor interface
......
...@@ -63,7 +63,7 @@ CppTools::CppCompletionAssistProvider *ModelManagerSupport::completionAssistProv ...@@ -63,7 +63,7 @@ CppTools::CppCompletionAssistProvider *ModelManagerSupport::completionAssistProv
} }
CppTools::BaseEditorDocumentProcessor *ModelManagerSupport::editorDocumentProcessor( CppTools::BaseEditorDocumentProcessor *ModelManagerSupport::editorDocumentProcessor(
TextEditor::BaseTextDocument *baseTextDocument) TextEditor::TextDocument *baseTextDocument)
{ {
return new ClangCodeModel::ClangEditorDocumentProcessor(baseTextDocument); return new ClangCodeModel::ClangEditorDocumentProcessor(baseTextDocument);
} }
...@@ -50,7 +50,7 @@ public: ...@@ -50,7 +50,7 @@ public:
virtual CppTools::CppCompletionAssistProvider *completionAssistProvider(); virtual CppTools::CppCompletionAssistProvider *completionAssistProvider();
virtual CppTools::BaseEditorDocumentProcessor *editorDocumentProcessor( virtual CppTools::BaseEditorDocumentProcessor *editorDocumentProcessor(
TextEditor::BaseTextDocument *baseTextDocument); TextEditor::TextDocument *baseTextDocument);
private: private:
QScopedPointer<CppTools::CppCompletionAssistProvider> m_completionAssistProvider; QScopedPointer<CppTools::CppCompletionAssistProvider> m_completionAssistProvider;
......
...@@ -71,7 +71,7 @@ CMakeEditor::CMakeEditor() ...@@ -71,7 +71,7 @@ CMakeEditor::CMakeEditor()
void CMakeEditor::finalizeInitialization() void CMakeEditor::finalizeInitialization()
{ {
connect(document(), &IDocument::changed, [this]() { connect(document(), &IDocument::changed, [this]() {
BaseTextDocument *document = textDocument(); TextDocument *document = textDocument();
if (!document->isModified()) if (!document->isModified())
return; return;
InfoBar *infoBar = document->infoBar(); InfoBar *infoBar = document->infoBar();
...@@ -240,7 +240,7 @@ CMakeEditorWidget::Link CMakeEditorWidget::findLinkAt(const QTextCursor &cursor, ...@@ -240,7 +240,7 @@ CMakeEditorWidget::Link CMakeEditorWidget::findLinkAt(const QTextCursor &cursor,
// CMakeDocument // CMakeDocument
// //
class CMakeDocument : public BaseTextDocument class CMakeDocument : public TextDocument
{ {
public: public:
CMakeDocument(); CMakeDocument();
......
...@@ -48,10 +48,10 @@ enum { debug = 0 }; ...@@ -48,10 +48,10 @@ enum { debug = 0 };
namespace Core { namespace Core {
namespace Internal { namespace Internal {
class TextDocumentPrivate class BaseTextDocumentPrivate
{ {
public: public:
TextDocumentPrivate() : m_readResult(Utils::TextFileFormat::ReadSuccess) {} BaseTextDocumentPrivate() : m_readResult(Utils::TextFileFormat::ReadSuccess) {}
Utils::TextFileFormat m_format; Utils::TextFileFormat m_format;
Utils::TextFileFormat::ReadResult m_readResult; Utils::TextFileFormat::ReadResult m_readResult;
...@@ -60,23 +60,23 @@ public: ...@@ -60,23 +60,23 @@ public:
} // namespace Internal } // namespace Internal
TextDocument::TextDocument(QObject *parent) : BaseTextDocument::BaseTextDocument(QObject *parent) :
IDocument(parent), d(new Internal::TextDocumentPrivate) IDocument(parent), d(new Internal::BaseTextDocumentPrivate)
{ {
setCodec(Core::EditorManager::defaultTextCodec()); setCodec(Core::EditorManager::defaultTextCodec());
} }
TextDocument::~TextDocument() BaseTextDocument::~BaseTextDocument()
{ {
delete d; delete d;
} }
bool TextDocument::hasDecodingError() const bool BaseTextDocument::hasDecodingError() const
{ {
return d->m_readResult == Utils::TextFileFormat::ReadEncodingError; return d->m_readResult == Utils::TextFileFormat::ReadEncodingError;
} }
QByteArray TextDocument::decodingErrorSample() const QByteArray BaseTextDocument::decodingErrorSample() const
{ {
return d->m_decodingErrorSample; return d->m_decodingErrorSample;
} }
...@@ -85,7 +85,7 @@ QByteArray TextDocument::decodingErrorSample() const ...@@ -85,7 +85,7 @@ QByteArray TextDocument::decodingErrorSample() const
Writes out text using the format obtained from the last read. Writes out text using the format obtained from the last read.
*/ */
bool TextDocument::write(const QString &fileName, const QString &data, QString *errorMessage) const bool BaseTextDocument::write(const QString &fileName, const QString &data, QString *errorMessage) const
{ {
return write(fileName, format(), data, errorMessage); return write(fileName, format(), data, errorMessage);
} }
...@@ -94,7 +94,7 @@ bool TextDocument::write(const QString &fileName, const QString &data, QString * ...@@ -94,7 +94,7 @@ bool TextDocument::write(const QString &fileName, const QString &data, QString *
Writes out text using a custom \a format. Writes out text using a custom \a format.
*/ */
bool TextDocument::write(const QString &fileName, const Utils::TextFileFormat &format, const QString &data, QString *errorMessage) const bool BaseTextDocument::write(const QString &fileName, const Utils::TextFileFormat &format, const QString &data, QString *errorMessage) const
{ {
if (debug) if (debug)
qDebug() << Q_FUNC_INFO << this << fileName; qDebug() << Q_FUNC_INFO << this << fileName;
...@@ -105,7 +105,7 @@ bool TextDocument::write(const QString &fileName, const Utils::TextFileFormat &f ...@@ -105,7 +105,7 @@ bool TextDocument::write(const QString &fileName, const Utils::TextFileFormat &f
Autodetects format and reads in the text file specified by \a fileName. Autodetects format and reads in the text file specified by \a fileName.
*/ */
TextDocument::ReadResult TextDocument::read(const QString &fileName, QStringList *plainTextList, QString *errorString) BaseTextDocument::ReadResult BaseTextDocument::read(const QString &fileName, QStringList *plainTextList, QString *errorString)
{ {
d->m_readResult = d->m_readResult =
Utils::TextFileFormat::readFile(fileName, codec(), Utils::TextFileFormat::readFile(fileName, codec(),
...@@ -117,7 +117,7 @@ TextDocument::ReadResult TextDocument::read(const QString &fileName, QStringList ...@@ -117,7 +117,7 @@ TextDocument::ReadResult TextDocument::read(const QString &fileName, QStringList
Autodetects format and reads in the text file specified by \a fileName. Autodetects format and reads in the text file specified by \a fileName.
*/ */
TextDocument::ReadResult TextDocument::read(const QString &fileName, QString *plainText, QString *errorString) BaseTextDocument::ReadResult BaseTextDocument::read(const QString &fileName, QString *plainText, QString *errorString)
{ {
d->m_readResult = d->m_readResult =
Utils::TextFileFormat::readFile(fileName, codec(), Utils::TextFileFormat::readFile(fileName, codec(),
...@@ -125,19 +125,19 @@ TextDocument::ReadResult TextDocument::read(const QString &fileName, QString *pl ...@@ -125,19 +125,19 @@ TextDocument::ReadResult TextDocument::read(const QString &fileName, QString *pl
return d->m_readResult; return d->m_readResult;
} }
const QTextCodec *TextDocument::codec() const const QTextCodec *BaseTextDocument::codec() const
{ {
return d->m_format.codec; return d->m_format.codec;
} }
void TextDocument::setCodec(const QTextCodec *codec) void BaseTextDocument::setCodec(const QTextCodec *codec)
{ {
if (debug) if (debug)
qDebug() << Q_FUNC_INFO << this << (codec ? codec->name() : QByteArray()); qDebug() << Q_FUNC_INFO << this << (codec ? codec->name() : QByteArray());
d->m_format.codec = codec; d->m_format.codec = codec;
} }
void TextDocument::switchUtf8Bom() void BaseTextDocument::switchUtf8Bom()
{ {
if (debug) if (debug)
qDebug() << Q_FUNC_INFO << this << "UTF-8 BOM: " << !d->m_format.hasUtf8Bom; qDebug() << Q_FUNC_INFO << this << "UTF-8 BOM: " << !d->m_format.hasUtf8Bom;
...@@ -148,7 +148,7 @@ void TextDocument::switchUtf8Bom() ...@@ -148,7 +148,7 @@ void TextDocument::switchUtf8Bom()
Returns the format obtained from the last call to \c read(). Returns the format obtained from the last call to \c read().
*/ */
Utils::TextFileFormat TextDocument::format() const Utils::TextFileFormat BaseTextDocument::format() const
{ {
return d->m_format; return d->m_format;
} }
......
...@@ -36,16 +36,17 @@ ...@@ -36,16 +36,17 @@
namespace Core { namespace Core {
namespace Internal { class TextDocumentPrivate; } namespace Internal { class BaseTextDocumentPrivate; }
class CORE_EXPORT TextDocument : public IDocument class CORE_EXPORT BaseTextDocument : public IDocument
{ {
Q_OBJECT Q_OBJECT
public: public:
typedef Utils::TextFileFormat::ReadResult ReadResult; typedef Utils::TextFileFormat::ReadResult ReadResult;
explicit TextDocument(QObject *parent = 0); explicit BaseTextDocument(QObject *parent = 0);
virtual ~TextDocument(); virtual ~BaseTextDocument();
Utils::TextFileFormat format() const; Utils::TextFileFormat format() const;
const QTextCodec *codec() const; const QTextCodec *codec() const;
...@@ -63,7 +64,7 @@ public: ...@@ -63,7 +64,7 @@ public:
bool write(const QString &fileName, const Utils::TextFileFormat &format, const QString &data, QString *errorMessage) const; bool write(const QString &fileName, const Utils::TextFileFormat &format, const QString &data, QString *errorMessage) const;
private: private:
Internal::TextDocumentPrivate *d; Internal::BaseTextDocumentPrivate *d;
}; };
} // namespace Core } // namespace Core
......
...@@ -214,7 +214,7 @@ void CodepasterPlugin::postEditor() ...@@ -214,7 +214,7 @@ void CodepasterPlugin::postEditor()
if (const BaseTextEditor *textEditor = qobject_cast<const BaseTextEditor *>(editor)) if (const BaseTextEditor *textEditor = qobject_cast<const BaseTextEditor *>(editor))
data = textEditor->selectedText(); data = textEditor->selectedText();
if (data.isEmpty()) { if (data.isEmpty()) {
if (auto textDocument = qobject_cast<const BaseTextDocument *>(document)) if (auto textDocument = qobject_cast<const TextDocument *>(document))
data = textDocument->plainText(); data = textDocument->plainText();
} }
post(data, mimeType); post(data, mimeType);
......
...@@ -706,7 +706,7 @@ void CppEditorWidget::onFunctionDeclDefLinkFound(QSharedPointer<FunctionDeclDefL ...@@ -706,7 +706,7 @@ void CppEditorWidget::onFunctionDeclDefLinkFound(QSharedPointer<FunctionDeclDefL
d->m_declDefLink = link; d->m_declDefLink = link;
IDocument *targetDocument = DocumentModel::documentForFilePath( d->m_declDefLink->targetFile->fileName()); IDocument *targetDocument = DocumentModel::documentForFilePath( d->m_declDefLink->targetFile->fileName());
if (textDocument() != targetDocument) { if (textDocument() != targetDocument) {
if (auto textDocument = qobject_cast<BaseTextDocument *>(targetDocument)) if (auto textDocument = qobject_cast<TextDocument *>(targetDocument))
connect(textDocument, SIGNAL(contentsChanged()), connect(textDocument, SIGNAL(contentsChanged()),
this, SLOT(abortDeclDefLink())); this, SLOT(abortDeclDefLink()));
} }
...@@ -741,7 +741,7 @@ void CppEditorWidget::abortDeclDefLink() ...@@ -741,7 +741,7 @@ void CppEditorWidget::abortDeclDefLink()
IDocument *targetDocument = DocumentModel::documentForFilePath(d->m_declDefLink->targetFile->fileName()); IDocument *targetDocument = DocumentModel::documentForFilePath(d->m_declDefLink->targetFile->fileName());
if (textDocument() != targetDocument) { if (textDocument() != targetDocument) {
if (auto textDocument = qobject_cast<BaseTextDocument *>(targetDocument)) if (auto textDocument = qobject_cast<TextDocument *>(targetDocument))
disconnect(textDocument, SIGNAL(contentsChanged()), disconnect(textDocument, SIGNAL(contentsChanged()),
this, SLOT(abortDeclDefLink())); this, SLOT(abortDeclDefLink()));
} }
......
...@@ -166,7 +166,7 @@ void CppEditorDocument::applyFontSettings() ...@@ -166,7 +166,7 @@ void CppEditorDocument::applyFontSettings()
b = b.next(); b = b.next();
} }
} }
BaseTextDocument::applyFontSettings(); // rehighlights and updates additional formats TextDocument::applyFontSettings(); // rehighlights and updates additional formats
} }
void CppEditorDocument::invalidateFormatterCache() void CppEditorDocument::invalidateFormatterCache()
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
namespace CppEditor { namespace CppEditor {
namespace Internal { namespace Internal {
class CppEditorDocument : public TextEditor::BaseTextDocument class CppEditorDocument : public TextEditor::TextDocument
{ {
Q_OBJECT Q_OBJECT
......
...@@ -104,7 +104,7 @@ public: ...@@ -104,7 +104,7 @@ public:
static void escape(); static void escape();
/// Undoing changes /// Undoing changes
static void undoChangesInDocument(BaseTextDocument *editorDocument); static void undoChangesInDocument(TextDocument *editorDocument);
static void undoChangesInAllEditorWidgets(); static void undoChangesInAllEditorWidgets();
/// Execute actions for the current cursor position of editorWidget. /// Execute actions for the current cursor position of editorWidget.
...@@ -255,7 +255,7 @@ void TestActionsTestCase::escape() ...@@ -255,7 +255,7 @@ void TestActionsTestCase::escape()
QTest::keyClick(w, Qt::Key_Escape); QTest::keyClick(w, Qt::Key_Escape);
} }
void TestActionsTestCase::undoChangesInDocument(BaseTextDocument *editorDocument) void TestActionsTestCase::undoChangesInDocument(TextDocument *editorDocument)
{ {
QTextDocument * const document = editorDocument->document(); QTextDocument * const document = editorDocument->document();
QVERIFY(document); QVERIFY(document);
...@@ -266,7 +266,7 @@ void TestActionsTestCase::undoChangesInDocument(BaseTextDocument *editorDocument ...@@ -266,7 +266,7 @@ void TestActionsTestCase::undoChangesInDocument(BaseTextDocument *editorDocument
void TestActionsTestCase::undoChangesInAllEditorWidgets() void TestActionsTestCase::undoChangesInAllEditorWidgets()
{ {
foreach (IDocument *document, DocumentModel::openedDocuments()) { foreach (IDocument *document, DocumentModel::openedDocuments()) {
BaseTextDocument *baseTextDocument = qobject_cast<BaseTextDocument *>(document); TextDocument *baseTextDocument = qobject_cast<TextDocument *>(document);
undoChangesInDocument(baseTextDocument); undoChangesInDocument(baseTextDocument);
} }
} }
......
...@@ -47,7 +47,7 @@ namespace CppTools { ...@@ -47,7 +47,7 @@ namespace CppTools {
*/ */
BaseEditorDocumentProcessor::BaseEditorDocumentProcessor( BaseEditorDocumentProcessor::BaseEditorDocumentProcessor(
TextEditor::BaseTextDocument *document) TextEditor::TextDocument *document)
: m_baseTextDocument(document) : m_baseTextDocument(document)
{ {
QTC_CHECK(document); QTC_CHECK(document);
...@@ -57,7 +57,7 @@ BaseEditorDocumentProcessor::~BaseEditorDocumentProcessor() ...@@ -57,7 +57,7 @@ BaseEditorDocumentProcessor::~BaseEditorDocumentProcessor()
{ {
} }
TextEditor::BaseTextDocument *BaseEditorDocumentProcessor::baseTextDocument() const TextEditor::TextDocument *BaseEditorDocumentProcessor::baseTextDocument() const
{ {
return m_baseTextDocument; return m_baseTextDocument;
} }
......
...@@ -49,10 +49,10 @@ class CPPTOOLS_EXPORT BaseEditorDocumentProcessor : public QObject ...@@ -49,10 +49,10 @@ class CPPTOOLS_EXPORT BaseEditorDocumentProcessor : public QObject
BaseEditorDocumentProcessor(); BaseEditorDocumentProcessor();
public: public:
BaseEditorDocumentProcessor(TextEditor::BaseTextDocument *document); BaseEditorDocumentProcessor(TextEditor::TextDocument *document);
virtual ~BaseEditorDocumentProcessor(); virtual ~BaseEditorDocumentProcessor();
TextEditor::BaseTextDocument *baseTextDocument() const; TextEditor::TextDocument *baseTextDocument() const;
// Function interface to implement // Function interface to implement
virtual void run() = 0; virtual void run() = 0;
...@@ -90,7 +90,7 @@ protected: ...@@ -90,7 +90,7 @@ protected:
QTextDocument *textDocument() const { return m_baseTextDocument->document(); } QTextDocument *textDocument() const { return m_baseTextDocument->document(); }
private: private:
TextEditor::BaseTextDocument *m_baseTextDocument; TextEditor::TextDocument *m_baseTextDocument;
}; };
} // namespace CppTools } // namespace CppTools
......
...@@ -123,7 +123,7 @@ QList<TextEditor::BlockRange> toTextEditorBlocks( ...@@ -123,7 +123,7 @@ QList<TextEditor::BlockRange> toTextEditorBlocks(
namespace CppTools { namespace CppTools {
BuiltinEditorDocumentProcessor::BuiltinEditorDocumentProcessor( BuiltinEditorDocumentProcessor::BuiltinEditorDocumentProcessor(
TextEditor::BaseTextDocument *document, TextEditor::TextDocument *document,
bool enableSemanticHighlighter) bool enableSemanticHighlighter)
: BaseEditorDocumentProcessor(document) : BaseEditorDocumentProcessor(document)
, m_parser(document->filePath()) , m_parser(document->filePath())
......
...@@ -45,7 +45,7 @@ class CPPTOOLS_EXPORT BuiltinEditorDocumentProcessor : public BaseEditorDocument ...@@ -45,7 +45,7 @@ class CPPTOOLS_EXPORT BuiltinEditorDocumentProcessor : public BaseEditorDocument
BuiltinEditorDocumentProcessor(); BuiltinEditorDocumentProcessor();
public: public:
BuiltinEditorDocumentProcessor(TextEditor::BaseTextDocument *document, BuiltinEditorDocumentProcessor(TextEditor::TextDocument *document,
bool enableSemanticHighlighter = true); bool enableSemanticHighlighter = true);
~BuiltinEditorDocumentProcessor(); ~BuiltinEditorDocumentProcessor();
......
...@@ -952,7 +952,7 @@ CppCompletionAssistProvider *CppModelManager::completionAssistProvider(const QSt ...@@ -952,7 +952,7 @@ CppCompletionAssistProvider *CppModelManager::completionAssistProvider(const QSt
} }
BaseEditorDocumentProcessor *CppModelManager::editorDocumentProcessor( BaseEditorDocumentProcessor *CppModelManager::editorDocumentProcessor(
TextEditor::BaseTextDocument *baseTextDocument) const TextEditor::TextDocument *baseTextDocument) const
{ {
QTC_ASSERT(baseTextDocument, return 0); QTC_ASSERT(baseTextDocument, return 0);
ModelManagerSupport *cms = modelManagerSupportForMimeType(baseTextDocument->mimeType()); ModelManagerSupport *cms = modelManagerSupportForMimeType(baseTextDocument->mimeType());
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
namespace Core { class IEditor; } namespace Core { class IEditor; }
namespace CPlusPlus { class LookupContext; } namespace CPlusPlus { class LookupContext; }
namespace ProjectExplorer { class Project; } namespace ProjectExplorer { class Project; }
namespace TextEditor { class BaseTextDocument; } namespace TextEditor { class TextDocument; }
namespace CppTools { namespace CppTools {
...@@ -133,7 +133,7 @@ public: ...@@ -133,7 +133,7 @@ public:
ModelManagerSupport *modelManagerSupportForMimeType(const QString &mimeType) const; ModelManagerSupport *modelManagerSupportForMimeType(const QString &mimeType) const;
CppCompletionAssistProvider *completionAssistProvider(const QString &mimeType) const; CppCompletionAssistProvider *completionAssistProvider(const QString &mimeType) const;
BaseEditorDocumentProcessor *editorDocumentProcessor( BaseEditorDocumentProcessor *editorDocumentProcessor(
TextEditor::BaseTextDocument *baseTextDocument) const; TextEditor::TextDocument *baseTextDocument) const;
void setIndexingSupport(CppIndexingSupport *indexingSupport); void setIndexingSupport(CppIndexingSupport *indexingSupport);
CppIndexingSupport *indexingSupport(); CppIndexingSupport *indexingSupport();
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <QString> #include <QString>