diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-12-11 06:09:59 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-12-11 10:43:33 +0000 |
commit | d486bc47497dd104b1158fd954f5a04aa645632d (patch) | |
tree | e9d3a363793babdaa92c31f749f81c1a262a7bca /src/plugins/clangtools/diagnosticconfigswidget.cpp | |
parent | 0518fd34caded6b5bd51a3647ced9b87e711e203 (diff) | |
download | qt-creator-d486bc47497dd104b1158fd954f5a04aa645632d.tar.gz |
ClangTools: Show clang-tidy/clazy documentation Urls as tooltip
Disclose up-front where the link leads to.
Change-Id: I6b6b1df93eb4d7870b809a71adc1bd10518e7c8f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/plugins/clangtools/diagnosticconfigswidget.cpp')
-rw-r--r-- | src/plugins/clangtools/diagnosticconfigswidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/clangtools/diagnosticconfigswidget.cpp b/src/plugins/clangtools/diagnosticconfigswidget.cpp index 8d4f869f3f..b6591820d1 100644 --- a/src/plugins/clangtools/diagnosticconfigswidget.cpp +++ b/src/plugins/clangtools/diagnosticconfigswidget.cpp @@ -344,7 +344,7 @@ private: if (!needsLink(node)) return QVariant(); - if (role == LinkRole) { + if (role == LinkRole || role == Qt::ToolTipRole) { // 'clang-analyzer-' group if (node->isDir) return QString::fromUtf8(CLANG_STATIC_ANALYZER_URL); @@ -511,7 +511,7 @@ private: const auto *node = ClazyChecksTree::fromIndex(index); if (fullIndex.column() == LinkColumn) { - if (role == LinkRole) { + if (role == LinkRole || role == Qt::ToolTipRole) { if (node->check.name.isEmpty()) return QVariant(); return QString::fromUtf8(CppTools::Constants::CLAZY_DOCUMENTATION_URL_TEMPLATE) |