From beef4807837101aa710ffba556c8fe362f92e026 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 30 Sep 2014 13:08:05 +0200 Subject: TextEditor: Simplify HoverHandler handling The editor factories are already a central place to associate hover handlers with editors, no need to retrieve them later from the object pool again. This also allows for easy handling of more than one active handler per editor. Change-Id: Ie716b96f5ce6b526ee897468635e03e909d81538 Reviewed-by: David Schulz --- src/plugins/glsleditor/glslhoverhandler.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/plugins/glsleditor/glslhoverhandler.h') diff --git a/src/plugins/glsleditor/glslhoverhandler.h b/src/plugins/glsleditor/glslhoverhandler.h index 9df874b63a..6aeb1fe50f 100644 --- a/src/plugins/glsleditor/glslhoverhandler.h +++ b/src/plugins/glsleditor/glslhoverhandler.h @@ -32,24 +32,15 @@ #include -#include - -namespace Core { class IEditor; } - -namespace TextEditor { class BaseTextEditor; } - namespace GlslEditor { namespace Internal { class GlslHoverHandler : public TextEditor::BaseHoverHandler { - Q_OBJECT public: - GlslHoverHandler(QObject *parent = 0); - virtual ~GlslHoverHandler(); + GlslHoverHandler() {} private: - virtual bool acceptEditor(Core::IEditor *editor); virtual void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos); virtual void decorateToolTip(); }; -- cgit v1.2.1