summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/basehoverhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/basehoverhandler.h')
-rw-r--r--src/plugins/texteditor/basehoverhandler.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/plugins/texteditor/basehoverhandler.h b/src/plugins/texteditor/basehoverhandler.h
index adaa382d3e..7d78206934 100644
--- a/src/plugins/texteditor/basehoverhandler.h
+++ b/src/plugins/texteditor/basehoverhandler.h
@@ -46,9 +46,12 @@ class TEXTEDITOR_EXPORT BaseHoverHandler : public QObject
Q_OBJECT
public:
- BaseHoverHandler(QObject *parent = 0);
+ BaseHoverHandler();
~BaseHoverHandler();
+ QString contextHelpId(TextEditorWidget *widget, int pos);
+ void showToolTip(TextEditorWidget *widget, const QPoint &point, int pos);
+
protected:
void setToolTip(const QString &tooltip);
void appendToolTip(const QString &extension);
@@ -63,14 +66,9 @@ protected:
const HelpItem &lastHelpItemIdentified() const;
private:
- void editorOpened(Core::IEditor *editor);
- void showToolTip(BaseTextEditor *editor, const QPoint &point, int pos);
- void updateContextHelpId(BaseTextEditor *editor, int pos);
-
void clear();
- void process(BaseTextEditor *editor, int pos);
+ void process(TextEditorWidget *widget, int pos);
- virtual bool acceptEditor(Core::IEditor *editor) = 0;
virtual void identifyMatch(TextEditorWidget *editorWidget, int pos) = 0;
virtual void decorateToolTip();
virtual void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point);