2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2009-05-04 12:19:22 +02:00
|
|
|
|
|
|
|
|
#include "qmlprojectnodes.h"
|
|
|
|
|
|
2022-05-31 11:16:44 +02:00
|
|
|
#include <utils/fsengine/fileiconprovider.h>
|
2019-01-18 20:38:48 +01:00
|
|
|
|
2019-10-25 09:55:32 +02:00
|
|
|
#include <projectexplorer/project.h>
|
|
|
|
|
#include <projectexplorer/projectexplorer.h>
|
2016-10-06 11:31:06 +02:00
|
|
|
|
2017-02-28 14:46:14 +01:00
|
|
|
using namespace ProjectExplorer;
|
|
|
|
|
|
2010-02-16 13:39:13 +01:00
|
|
|
namespace QmlProjectManager {
|
|
|
|
|
namespace Internal {
|
2009-05-04 12:19:22 +02:00
|
|
|
|
2019-10-25 09:55:32 +02:00
|
|
|
QmlProjectNode::QmlProjectNode(Project *project)
|
|
|
|
|
: ProjectNode(project->projectDirectory())
|
2009-05-04 12:19:22 +02:00
|
|
|
{
|
2021-06-04 07:59:00 +02:00
|
|
|
setDisplayName(project->projectFilePath().completeBaseName());
|
2017-09-06 11:32:15 +02:00
|
|
|
|
2021-04-08 16:31:31 +02:00
|
|
|
setIcon(DirectoryIcon(":/projectexplorer/images/fileoverlay_qml.png"));
|
2009-05-04 12:19:22 +02:00
|
|
|
}
|
|
|
|
|
|
2010-02-16 13:39:13 +01:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QmlProjectManager
|