forked from qt-creator/qt-creator
Core: Use FileName for file path in IDocument
Change-Id: I85f7398aee59d0d36f0e5c3bf88ff3c96002e394 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
9c1b28fec2
commit
c6a983d271
@@ -42,11 +42,11 @@ namespace QmlProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
QmlProjectNode::QmlProjectNode(QmlProject *project, Core::IDocument *projectFile)
|
||||
: ProjectExplorer::ProjectNode(QFileInfo(projectFile->filePath()).absoluteFilePath()),
|
||||
: ProjectExplorer::ProjectNode(projectFile->filePath().toString()),
|
||||
m_project(project),
|
||||
m_projectFile(projectFile)
|
||||
{
|
||||
setDisplayName(QFileInfo(projectFile->filePath()).completeBaseName());
|
||||
setDisplayName(projectFile->filePath().toFileInfo().completeBaseName());
|
||||
// make overlay
|
||||
const QSize desiredSize = QSize(16, 16);
|
||||
const QIcon projectBaseIcon(QLatin1String(":/qmlproject/images/qmlfolder.png"));
|
||||
@@ -63,7 +63,7 @@ Core::IDocument *QmlProjectNode::projectFile() const
|
||||
{ return m_projectFile; }
|
||||
|
||||
QString QmlProjectNode::projectFilePath() const
|
||||
{ return m_projectFile->filePath(); }
|
||||
{ return m_projectFile->filePath().toString(); }
|
||||
|
||||
void QmlProjectNode::refresh()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user