diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-29 11:11:49 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-03-29 11:03:34 +0000 |
commit | 348aa12eaa477f416b9ba32924a3312fdf26f1bd (patch) | |
tree | 01c08be4f42c248c62d821b95dcd5fea1730e4b9 /src/plugins/qmlprojectmanager/qmlprojectfile.cpp | |
parent | df64242ab2d25854686d406f8bdc392795c79de1 (diff) | |
download | qt-creator-348aa12eaa477f416b9ba32924a3312fdf26f1bd.tar.gz |
ProjectExplorer: Provide ProjectDocument and use it in all projects
Change-Id: I6e054ebf1043bd1f6748f1567f35c68394bd6528
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlprojectfile.cpp')
-rw-r--r-- | src/plugins/qmlprojectmanager/qmlprojectfile.cpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectfile.cpp b/src/plugins/qmlprojectmanager/qmlprojectfile.cpp deleted file mode 100644 index 3794f1d11a..0000000000 --- a/src/plugins/qmlprojectmanager/qmlprojectfile.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -****************************************************************************/ - -#include "qmlprojectfile.h" -#include "qmlproject.h" -#include "qmlprojectconstants.h" -#include <utils/qtcassert.h> - -namespace QmlProjectManager { -namespace Internal { - -QmlProjectFile::QmlProjectFile(QmlProject *parent, const Utils::FileName &fileName) : - m_project(parent) -{ - QTC_CHECK(m_project); - QTC_CHECK(!fileName.isEmpty()); - setId("Qml.ProjectFile"); - setMimeType(QLatin1String(Constants::QMLPROJECT_MIMETYPE)); - setFilePath(fileName); -} - -Core::IDocument::ReloadBehavior QmlProjectFile::reloadBehavior(ChangeTrigger state, ChangeType type) const -{ - Q_UNUSED(state) - Q_UNUSED(type) - return BehaviorSilent; -} - -bool QmlProjectFile::reload(QString *errorString, ReloadFlag flag, ChangeType type) -{ - Q_UNUSED(errorString) - Q_UNUSED(flag) - - if (type == TypeContents) - m_project->refreshProjectFile(); - - return true; -} - -} // namespace Internal -} // namespace QmlProjectManager |