forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user