diff options
author | hjk <hjk121@nokiamail.com> | 2013-09-11 17:11:15 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-09-13 11:35:22 +0200 |
commit | 8098c085fe3dd0cee556a9a681cf8d997f5b9f3f (patch) | |
tree | c12e7a68c589ddd4e7f383d2fb7cb2f60c5dd7ea /src/plugins/texteditor/basehoverhandler.cpp | |
parent | ee574f58d63ed7785809fa0e3319f8a60de34d16 (diff) |
Utils: Cleanup of Tooltip interface
Change-Id: If4908e7a5d5ce749ff1e2efc7a026604821737be
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/texteditor/basehoverhandler.cpp')
-rw-r--r-- | src/plugins/texteditor/basehoverhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/basehoverhandler.cpp b/src/plugins/texteditor/basehoverhandler.cpp index 2019aba61c7..8acdc55811d 100644 --- a/src/plugins/texteditor/basehoverhandler.cpp +++ b/src/plugins/texteditor/basehoverhandler.cpp @@ -84,7 +84,7 @@ void BaseHoverHandler::updateContextHelpId(TextEditor::ITextEditor *editor, int // If the tooltip is visible and there is a help match, this match is used to update // the help id. Otherwise, let the identification process happen. - if (!Utils::ToolTip::instance()->isVisible() || !lastHelpItemIdentified().isValid()) + if (!Utils::ToolTip::isVisible() || !lastHelpItemIdentified().isValid()) process(editor, pos); if (lastHelpItemIdentified().isValid()) @@ -157,9 +157,9 @@ void BaseHoverHandler::decorateToolTip() void BaseHoverHandler::operateTooltip(ITextEditor *editor, const QPoint &point) { if (m_toolTip.isEmpty()) - Utils::ToolTip::instance()->hide(); + Utils::ToolTip::hide(); else - Utils::ToolTip::instance()->show(point, Utils::TextContent(m_toolTip), editor->widget()); + Utils::ToolTip::show(point, Utils::TextContent(m_toolTip), editor->widget()); } BaseTextEditorWidget *BaseHoverHandler::baseTextEditor(ITextEditor *editor) |