forked from qt-creator/qt-creator
Make TextEditorPlugin internal again
The TextEditorSettings class already provides the appropriate signal.
This commit is contained in:
@@ -76,7 +76,7 @@
|
|||||||
#include <texteditor/basetextmark.h>
|
#include <texteditor/basetextmark.h>
|
||||||
#include <texteditor/itexteditor.h>
|
#include <texteditor/itexteditor.h>
|
||||||
#include <texteditor/texteditorconstants.h>
|
#include <texteditor/texteditorconstants.h>
|
||||||
#include <texteditor/texteditorplugin.h>
|
#include <texteditor/texteditorsettings.h>
|
||||||
|
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/styledbar.h>
|
#include <utils/styledbar.h>
|
||||||
@@ -958,7 +958,7 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess
|
|||||||
//
|
//
|
||||||
|
|
||||||
// TextEditor
|
// TextEditor
|
||||||
connect(TextEditorPlugin::instance(),
|
connect(TextEditorSettings::instance(),
|
||||||
SIGNAL(fontSettingsChanged(TextEditor::FontSettings)),
|
SIGNAL(fontSettingsChanged(TextEditor::FontSettings)),
|
||||||
manager, SLOT(fontSettingsChanged(TextEditor::FontSettings)));
|
manager, SLOT(fontSettingsChanged(TextEditor::FontSettings)));
|
||||||
|
|
||||||
|
@@ -140,9 +140,6 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
|
|||||||
quickFixCommand->setDefaultKeySequence(QKeySequence(tr("Alt+Return")));
|
quickFixCommand->setDefaultKeySequence(QKeySequence(tr("Alt+Return")));
|
||||||
connect(quickFixShortcut, SIGNAL(activated()), this, SLOT(invokeQuickFix()));
|
connect(quickFixShortcut, SIGNAL(activated()), this, SLOT(invokeQuickFix()));
|
||||||
|
|
||||||
connect(m_settings, SIGNAL(fontSettingsChanged(TextEditor::FontSettings)),
|
|
||||||
this, SIGNAL(fontSettingsChanged(TextEditor::FontSettings)));
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -30,7 +30,6 @@
|
|||||||
#ifndef TEXTEDITORPLUGIN_H
|
#ifndef TEXTEDITORPLUGIN_H
|
||||||
#define TEXTEDITORPLUGIN_H
|
#define TEXTEDITORPLUGIN_H
|
||||||
|
|
||||||
#include "texteditor_global.h"
|
|
||||||
#include <extensionsystem/iplugin.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
|
|
||||||
namespace Find {
|
namespace Find {
|
||||||
@@ -49,9 +48,7 @@ namespace Internal {
|
|||||||
class LineNumberFilter;
|
class LineNumberFilter;
|
||||||
class PlainTextEditorFactory;
|
class PlainTextEditorFactory;
|
||||||
|
|
||||||
} // namespace Internal
|
class TextEditorPlugin : public ExtensionSystem::IPlugin
|
||||||
|
|
||||||
class TEXTEDITOR_EXPORT TextEditorPlugin : public ExtensionSystem::IPlugin
|
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@@ -67,10 +64,7 @@ public:
|
|||||||
|
|
||||||
void initializeEditor(PlainTextEditor *editor);
|
void initializeEditor(PlainTextEditor *editor);
|
||||||
|
|
||||||
Internal::LineNumberFilter *lineNumberFilter() { return m_lineNumberFilter; }
|
LineNumberFilter *lineNumberFilter() { return m_lineNumberFilter; }
|
||||||
|
|
||||||
signals:
|
|
||||||
void fontSettingsChanged(const TextEditor::FontSettings &);
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void invokeCompletion();
|
void invokeCompletion();
|
||||||
@@ -81,11 +75,12 @@ private:
|
|||||||
static TextEditorPlugin *m_instance;
|
static TextEditorPlugin *m_instance;
|
||||||
TextEditorSettings *m_settings;
|
TextEditorSettings *m_settings;
|
||||||
TextFileWizard *m_wizard;
|
TextFileWizard *m_wizard;
|
||||||
Internal::PlainTextEditorFactory *m_editorFactory;
|
PlainTextEditorFactory *m_editorFactory;
|
||||||
Internal::LineNumberFilter *m_lineNumberFilter;
|
LineNumberFilter *m_lineNumberFilter;
|
||||||
Find::SearchResultWindow *m_searchResultWindow;
|
Find::SearchResultWindow *m_searchResultWindow;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace Internal
|
||||||
} // namespace TextEditor
|
} // namespace TextEditor
|
||||||
|
|
||||||
#endif // TEXTEDITORPLUGIN_H
|
#endif // TEXTEDITORPLUGIN_H
|
||||||
|
Reference in New Issue
Block a user