diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2013-07-23 12:30:17 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-08-01 11:42:41 +0200 |
commit | 5422b2c4da706c09579543ac98858ee5efe61d75 (patch) | |
tree | 34235bd210ee4793ca0d5def22b634f508330b92 /src/plugins/projectexplorer/dependenciespanel.cpp | |
parent | 54886da9ae7bf0d6daed925a5402876410a0109f (diff) | |
download | qt-creator-5422b2c4da706c09579543ac98858ee5efe61d75.tar.gz |
Introduce Project::projectFilePath()
Use it instead of retrieving this information from the document.
Change-Id: I809fcb2daf59021cf503c371a5d40d75d7448796
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/dependenciespanel.cpp')
-rw-r--r-- | src/plugins/projectexplorer/dependenciespanel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/dependenciespanel.cpp b/src/plugins/projectexplorer/dependenciespanel.cpp index 817171b2c9..a130d95aac 100644 --- a/src/plugins/projectexplorer/dependenciespanel.cpp +++ b/src/plugins/projectexplorer/dependenciespanel.cpp @@ -32,7 +32,6 @@ #include "session.h" #include <coreplugin/fileiconprovider.h> -#include <coreplugin/idocument.h> #include <utils/detailswidget.h> #include <QDebug> @@ -104,7 +103,7 @@ QVariant DependenciesModel::data(const QModelIndex &index, int role) const case Qt::CheckStateRole: return m_session->hasDependency(m_project, p) ? Qt::Checked : Qt::Unchecked; case Qt::DecorationRole: - return Core::FileIconProvider::instance()->icon(QFileInfo(p->document()->filePath())); + return Core::FileIconProvider::instance()->icon(QFileInfo(p->projectFilePath())); default: return QVariant(); } |