diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-08-02 14:50:38 +0200 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-08-02 14:56:55 +0200 |
commit | 1530273671aa46f5a362a3ddf4fa9875bd9e13a4 (patch) | |
tree | 019f7b283855c463e7fd70b81e3b2973b8f5e6fd /src/plugins/cppeditor/cpphoverhandler.cpp | |
parent | e8ac7ead0613a2b06827f85e3a0330fd1c297f07 (diff) | |
download | qt-creator-1530273671aa46f5a362a3ddf4fa9875bd9e13a4.tar.gz |
Color tip for QML; Start of a bit more extensible tooltip class.
Diffstat (limited to 'src/plugins/cppeditor/cpphoverhandler.cpp')
-rw-r--r-- | src/plugins/cppeditor/cpphoverhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp index 3a9ad4b093..baf9d68854 100644 --- a/src/plugins/cppeditor/cpphoverhandler.cpp +++ b/src/plugins/cppeditor/cpphoverhandler.cpp @@ -39,6 +39,7 @@ #include <texteditor/itexteditor.h> #include <texteditor/basetexteditor.h> #include <texteditor/displaysettings.h> +#include <texteditor/tooltip/tooltip.h> #include <debugger/debuggerconstants.h> #include <FullySpecifiedType.h> @@ -57,7 +58,6 @@ #include <QtCore/QFileInfo> #include <QtCore/QtAlgorithms> #include <QtCore/QStringBuilder> -#include <QtGui/QToolTip> #include <QtGui/QTextCursor> #include <algorithm> @@ -159,7 +159,7 @@ void CppHoverHandler::updateContextHelpId(TextEditor::ITextEditor *editor, int p // If the tooltip is visible and there is a help match, this match is used to update the help // id. Otherwise, the identification process happens. - if (!QToolTip::isVisible() || m_matchingHelpCandidate == -1) + if (!TextEditor::ToolTip::instance()->isVisible() || m_matchingHelpCandidate == -1) identifyMatch(editor, pos); if (m_matchingHelpCandidate != -1) @@ -185,7 +185,7 @@ void CppHoverHandler::showToolTip(TextEditor::ITextEditor *editor, const QPoint identifyMatch(editor, pos); if (m_toolTip.isEmpty()) { - QToolTip::hideText(); + TextEditor::ToolTip::instance()->hide(); } else { if (!m_classHierarchy.isEmpty()) generateDiagramTooltip(baseEditor->displaySettings().m_extendTooltips); @@ -203,7 +203,7 @@ void CppHoverHandler::showToolTip(TextEditor::ITextEditor *editor, const QPoint #endif ); - QToolTip::showText(pnt, m_toolTip); + TextEditor::ToolTip::instance()->showText(pnt, m_toolTip, editor->widget()); } } |