forked from qt-creator/qt-creator
texteditor: add missing parts to previous commit
This commit is contained in:
@@ -140,6 +140,9 @@ 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,6 +30,7 @@
|
|||||||
#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 {
|
||||||
@@ -48,7 +49,9 @@ namespace Internal {
|
|||||||
class LineNumberFilter;
|
class LineNumberFilter;
|
||||||
class PlainTextEditorFactory;
|
class PlainTextEditorFactory;
|
||||||
|
|
||||||
class TextEditorPlugin : public ExtensionSystem::IPlugin
|
} // namespace Internal
|
||||||
|
|
||||||
|
class TEXTEDITOR_EXPORT TextEditorPlugin : public ExtensionSystem::IPlugin
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@@ -64,7 +67,10 @@ public:
|
|||||||
|
|
||||||
void initializeEditor(PlainTextEditor *editor);
|
void initializeEditor(PlainTextEditor *editor);
|
||||||
|
|
||||||
LineNumberFilter *lineNumberFilter() { return m_lineNumberFilter; }
|
Internal::LineNumberFilter *lineNumberFilter() { return m_lineNumberFilter; }
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void fontSettingsChanged(const TextEditor::FontSettings &);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void invokeCompletion();
|
void invokeCompletion();
|
||||||
@@ -75,12 +81,11 @@ private:
|
|||||||
static TextEditorPlugin *m_instance;
|
static TextEditorPlugin *m_instance;
|
||||||
TextEditorSettings *m_settings;
|
TextEditorSettings *m_settings;
|
||||||
TextFileWizard *m_wizard;
|
TextFileWizard *m_wizard;
|
||||||
PlainTextEditorFactory *m_editorFactory;
|
Internal::PlainTextEditorFactory *m_editorFactory;
|
||||||
LineNumberFilter *m_lineNumberFilter;
|
Internal::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