summaryrefslogtreecommitdiff
path: root/src/plugins/glsleditor/glslhoverhandler.h
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-09-30 13:08:05 +0200
committerhjk <hjk121@nokiamail.com>2014-09-30 15:46:34 +0200
commitbeef4807837101aa710ffba556c8fe362f92e026 (patch)
tree0eb5683aa6e44a63794e2c80f028dee96c2fd663 /src/plugins/glsleditor/glslhoverhandler.h
parentb1cc98f79beaca3aff62ebecbeb227c18cc2b896 (diff)
downloadqt-creator-beef4807837101aa710ffba556c8fe362f92e026.tar.gz
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 <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/glsleditor/glslhoverhandler.h')
-rw-r--r--src/plugins/glsleditor/glslhoverhandler.h11
1 files changed, 1 insertions, 10 deletions
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 <texteditor/basehoverhandler.h>
-#include <QObject>
-
-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();
};