diff options
author | hjk <qtc-committer@nokia.com> | 2010-06-02 09:57:23 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-06-02 09:57:23 +0200 |
commit | 5806009d29d587c0daa791ae91eef2c21fe9c66b (patch) | |
tree | 3c33e49eae5f113f91d8402214edf15927ae7aff /src/plugins/cppeditor/cpphoverhandler.cpp | |
parent | 89687ddd4bf383853fd93145f0f71419ad2103a1 (diff) | |
parent | 13e042737fb0fa0af8c6ba690be68a2ddf96ac07 (diff) | |
download | qt-creator-5806009d29d587c0daa791ae91eef2c21fe9c66b.tar.gz |
Merge remote branch 'origin/2.0'
Conflicts:
doc/qtcreator.qdoc
src/plugins/debugger/debuggermanager.cpp
src/plugins/texteditor/basetexteditor.cpp
Diffstat (limited to 'src/plugins/cppeditor/cpphoverhandler.cpp')
-rw-r--r-- | src/plugins/cppeditor/cpphoverhandler.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp index bd4754c2aa..4135d0b6cc 100644 --- a/src/plugins/cppeditor/cpphoverhandler.cpp +++ b/src/plugins/cppeditor/cpphoverhandler.cpp @@ -221,23 +221,24 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in } } + if (m_helpEngineNeedsSetup + && m_helpEngine->registeredDocumentations().count() > 0) { + m_helpEngine->setupData(); + m_helpEngineNeedsSetup = false; + } + QMap<QString, QUrl> helpLinks; + if (m_toolTip.isEmpty()) { foreach (const Document::Include &incl, doc->includes()) { if (incl.line() == lineNumber) { m_toolTip = QDir::toNativeSeparators(incl.fileName()); m_helpId = QFileInfo(incl.fileName()).fileName(); + helpLinks = m_helpEngine->linksForIdentifier(m_helpId); break; } } } - if (m_helpEngineNeedsSetup - && m_helpEngine->registeredDocumentations().count() > 0) { - m_helpEngine->setupData(); - m_helpEngineNeedsSetup = false; - } - - QMap<QString, QUrl> helpLinks; if (m_helpId.isEmpty()) { // Move to the end of a qualified name bool stop = false; |