Add tooltip to distinguish between identically named dependencies

Task-number: QTCREATORBUG-16781
Change-Id: Ia11845a8509d1f02a59c4abdef7089678d6b277a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Mitch Curtis
2018-01-04 16:17:46 +01:00
parent 874ec43abe
commit 62a3d16950

View File

@@ -94,6 +94,8 @@ QVariant DependenciesModel::data(const QModelIndex &index, int role) const
switch (role) { switch (role) {
case Qt::DisplayRole: case Qt::DisplayRole:
return p->displayName(); return p->displayName();
case Qt::ToolTipRole:
return p->projectFilePath().toUserOutput();
case Qt::CheckStateRole: case Qt::CheckStateRole:
return SessionManager::hasDependency(m_project, p) ? Qt::Checked : Qt::Unchecked; return SessionManager::hasDependency(m_project, p) ? Qt::Checked : Qt::Unchecked;
case Qt::DecorationRole: case Qt::DecorationRole: