summaryrefslogtreecommitdiff
path: root/src/plugins/genericprojectmanager/genericprojectmanager.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-03-03 18:16:34 +0100
committerhjk <hjk@qt.io>2017-03-09 10:41:33 +0000
commitc1bfc5d8ec99e7874208ad2f4dc312b73f1817cd (patch)
tree140e487fb3758bd9edf96ff91f597b3729f380bb /src/plugins/genericprojectmanager/genericprojectmanager.h
parent57144e28da79bc8e9df00b0c7dfc5d054d066877 (diff)
downloadqt-creator-c1bfc5d8ec99e7874208ad2f4dc312b73f1817cd.tar.gz
ProjectExplorer: Follow up on too-much-magic in IProjectManager
Use a ProjectManager::registerProjectType<Project>(MimeType) function, removing cryptic IProjectManager object ownership. Change-Id: I212cd25bd4ee757022a8cb0decb4b8de3a112d12 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/genericprojectmanager/genericprojectmanager.h')
-rw-r--r--src/plugins/genericprojectmanager/genericprojectmanager.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/plugins/genericprojectmanager/genericprojectmanager.h b/src/plugins/genericprojectmanager/genericprojectmanager.h
deleted file mode 100644
index d86df741f4..0000000000
--- a/src/plugins/genericprojectmanager/genericprojectmanager.h
+++ /dev/null
@@ -1,43 +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.
-**
-****************************************************************************/
-
-#pragma once
-
-#include <projectexplorer/iprojectmanager.h>
-
-namespace GenericProjectManager {
-namespace Internal {
-
-class Manager : public ProjectExplorer::IProjectManager
-{
- Q_OBJECT
-
-public:
- virtual QString mimeType() const override;
- virtual ProjectExplorer::Project *openProject(const QString &fileName) override;
-};
-
-} // namespace Internal
-} // namespace GenericProjectManager