summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/basehoverhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/basehoverhandler.cpp')
-rw-r--r--src/plugins/texteditor/basehoverhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/texteditor/basehoverhandler.cpp b/src/plugins/texteditor/basehoverhandler.cpp
index abbf2154ab..56ad0c0ddb 100644
--- a/src/plugins/texteditor/basehoverhandler.cpp
+++ b/src/plugins/texteditor/basehoverhandler.cpp
@@ -33,9 +33,10 @@ namespace TextEditor {
BaseHoverHandler::~BaseHoverHandler()
{}
-void BaseHoverHandler::showToolTip(TextEditorWidget *widget, const QPoint &point)
+void BaseHoverHandler::showToolTip(TextEditorWidget *widget, const QPoint &point, bool decorate)
{
- decorateToolTip();
+ if (decorate)
+ decorateToolTip();
operateTooltip(widget, point);
}