aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/dependenciespanel.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-01-04 16:17:46 +0100
committerMitch Curtis <mitch.curtis@qt.io>2018-01-09 09:10:43 +0000
commit62a3d16950b14606a00a2dd7b27f148c6ac6fac5 (patch)
tree981042318061fc75af89873ee2fa5ff2a3e3a037 /src/plugins/projectexplorer/dependenciespanel.cpp
parent874ec43abed24fc7ac8fc390a714c62239275bcd (diff)
Add tooltip to distinguish between identically named dependencies
Task-number: QTCREATORBUG-16781 Change-Id: Ia11845a8509d1f02a59c4abdef7089678d6b277a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/dependenciespanel.cpp')
-rw-r--r--src/plugins/projectexplorer/dependenciespanel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/dependenciespanel.cpp b/src/plugins/projectexplorer/dependenciespanel.cpp
index 595b5ca5a7b..07716e39b2a 100644
--- a/src/plugins/projectexplorer/dependenciespanel.cpp
+++ b/src/plugins/projectexplorer/dependenciespanel.cpp
@@ -94,6 +94,8 @@ QVariant DependenciesModel::data(const QModelIndex &index, int role) const
switch (role) {
case Qt::DisplayRole:
return p->displayName();
+ case Qt::ToolTipRole:
+ return p->projectFilePath().toUserOutput();
case Qt::CheckStateRole:
return SessionManager::hasDependency(m_project, p) ? Qt::Checked : Qt::Unchecked;
case Qt::DecorationRole: