diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-01-07 09:56:52 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-01-10 08:09:20 +0000 |
commit | c5b874dcf362785e9cab5f212417c48eb6f6c81e (patch) | |
tree | dd6d5a61a6e6415e4f7d8f1f1a15996eb3f66967 /src/plugins/clangcodemodel/clanghoverhandler.cpp | |
parent | 0a8a4bad7ef2eaece6e15ae5a11ee1ff27885652 (diff) | |
download | qt-creator-c5b874dcf362785e9cab5f212417c48eb6f6c81e.tar.gz |
Clang: Show help with F1 even if there is a diagnostic
...at that particular location.
For example, the code
new QSignalMapper;
produced a deprecated warning with Qt 5.12 and F1 led to "No
documentation available" as the diagnostic was always prioritized.
Task-number: QTCREATORBUG-21686
Change-Id: Icf03000fb6b9de04e467e758da6167018d154a21
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clanghoverhandler.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clanghoverhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clangcodemodel/clanghoverhandler.cpp b/src/plugins/clangcodemodel/clanghoverhandler.cpp index 33754cfb6a..be59805170 100644 --- a/src/plugins/clangcodemodel/clanghoverhandler.cpp +++ b/src/plugins/clangcodemodel/clanghoverhandler.cpp @@ -114,7 +114,7 @@ void ClangHoverHandler::identifyMatch(TextEditorWidget *editorWidget, m_cursorPosition = -1; // Check for diagnostics (sync) - if (editorDocumentProcessorHasDiagnosticAt(editorWidget, pos)) { + if (!isContextHelpRequest() && editorDocumentProcessorHasDiagnosticAt(editorWidget, pos)) { qCDebug(hoverLog) << "Checking for diagnostic at" << pos; setPriority(Priority_Diagnostic); m_cursorPosition = pos; |