aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmakeeditor.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-12-10 15:54:20 +0100
committerEike Ziller <eike.ziller@digia.com>2013-12-12 09:59:27 +0100
commit3d1b70c58e0d2eea47572ec4a018a18674508f9b (patch)
tree2217255fb7d6bc8e3e30603bb985cb655ab7be7d /src/plugins/cmakeprojectmanager/cmakeeditor.h
parent3ee9fb4d1c74058c785f24d19bac5fe879c75109 (diff)
Remove the need to register editors in the action handler
The action handler already knows which editors to handle through the context. It only needs to receive signals for updating the actions from the current editor. So there is no need to tell the action handler about every individual editor. This also removes some noise from the text editor implementations. Change-Id: I76dc5b1559cc8cf54ff313e6cdba4e789a3108aa Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeeditor.h')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeeditor.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditor.h b/src/plugins/cmakeprojectmanager/cmakeeditor.h
index 55e7639a24..8f6f6a1f1d 100644
--- a/src/plugins/cmakeprojectmanager/cmakeeditor.h
+++ b/src/plugins/cmakeprojectmanager/cmakeeditor.h
@@ -71,12 +71,11 @@ class CMakeEditorWidget : public TextEditor::BaseTextEditorWidget
Q_OBJECT
public:
- CMakeEditorWidget(QWidget *parent, CMakeEditorFactory *factory, TextEditor::TextEditorActionHandler *ah);
+ CMakeEditorWidget(QWidget *parent, CMakeEditorFactory *factory);
bool save(const QString &fileName = QString());
CMakeEditorFactory *factory() { return m_factory; }
- TextEditor::TextEditorActionHandler *actionHandler() const { return m_ah; }
Link findLinkAt(const QTextCursor &cursor, bool resolveTarget = true, bool inNextSplit = false);
@@ -89,7 +88,6 @@ public slots:
private:
CMakeEditorFactory *m_factory;
- TextEditor::TextEditorActionHandler *m_ah;
Utils::CommentDefinition m_commentDefinition;
};