aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basehoverhandler.cpp
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@digia.com>2013-01-10 15:07:17 +0100
committerDaniel Teske <daniel.teske@digia.com>2013-01-11 15:06:00 +0100
commit8e75e611a5f1e0aa4489cdf328cf91a916be08ef (patch)
tree22914d3b4fc67c45544e35d760166687ce3ee26f /src/plugins/texteditor/basehoverhandler.cpp
parentd26ec5048f368d293a6a71bf4a79a494ef2f0e57 (diff)
Move TextEditor::ToolTip to Utils
To enabled reuse from all plugins. Change-Id: I1de68c8e6ed017d45f1248b2043f9611becc3b54 Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/texteditor/basehoverhandler.cpp')
-rw-r--r--src/plugins/texteditor/basehoverhandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/texteditor/basehoverhandler.cpp b/src/plugins/texteditor/basehoverhandler.cpp
index 9a0627a69a6..3a1f78201bd 100644
--- a/src/plugins/texteditor/basehoverhandler.cpp
+++ b/src/plugins/texteditor/basehoverhandler.cpp
@@ -31,14 +31,14 @@
#include "itexteditor.h"
#include "basetexteditor.h"
#include "displaysettings.h"
-#include "tooltip.h"
-#include "tipcontents.h"
#include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/helpmanager.h>
#include <coreplugin/id.h>
#include <debugger/debuggerconstants.h>
+#include <utils/tooltip/tooltip.h>
+#include <utils/tooltip/tipcontents.h>
#include <QPoint>
@@ -89,7 +89,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 (!ToolTip::instance()->isVisible() || !lastHelpItemIdentified().isValid())
+ if (!Utils::ToolTip::instance()->isVisible() || !lastHelpItemIdentified().isValid())
process(editor, pos);
if (lastHelpItemIdentified().isValid())
@@ -162,9 +162,9 @@ void BaseHoverHandler::decorateToolTip()
void BaseHoverHandler::operateTooltip(ITextEditor *editor, const QPoint &point)
{
if (m_toolTip.isEmpty())
- ToolTip::instance()->hide();
+ Utils::ToolTip::instance()->hide();
else
- ToolTip::instance()->show(point, TextContent(m_toolTip), editor->widget());
+ Utils::ToolTip::instance()->show(point, Utils::TextContent(m_toolTip), editor->widget());
}
BaseTextEditorWidget *BaseHoverHandler::baseTextEditor(ITextEditor *editor)