summaryrefslogtreecommitdiff
path: root/src/plugins/qnx/bardescriptorfilenode.cpp
diff options
context:
space:
mode:
authorTobias Nätterlund <tobias.naetterlund.qnx@kdab.com>2014-03-06 14:39:50 +0100
committerTobias Nätterlund <tobias.naetterlund@kdab.com>2014-03-14 06:52:22 +0100
commit8ee451b94a5aec8625a58e4df3450cdcba448d01 (patch)
tree27f719ee85c8ec21daa209bea530999254023558 /src/plugins/qnx/bardescriptorfilenode.cpp
parent3b786e7faf33e50e6a8b39975087c7939fe879d6 (diff)
downloadqt-creator-8ee451b94a5aec8625a58e4df3450cdcba448d01.tar.gz
BlackBerry: Do not add bar-descriptor.xml to .pro file
The bar-descriptor.xml file will no longer be added to the .pro file as OTHER_FILES, as it was not necessarily the file listed in the .pro file that was used for creating the package later on, as that is configured in the deployment settings. Instead, the file configured in the deployment settings is now added to the file project tree, and kept in sync if the user changes the file to use for deployment. Task-number: QTCREATORBUG-10054 Change-Id: I3068fedf8ea17f4e60131f9106b3844086d1552b Reviewed-by: David Kaspar <dkaspar@blackberry.com> Reviewed-by: Mehdi Fekari <mfekari@blackberry.com> Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'src/plugins/qnx/bardescriptorfilenode.cpp')
-rw-r--r--src/plugins/qnx/bardescriptorfilenode.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/plugins/qnx/bardescriptorfilenode.cpp b/src/plugins/qnx/bardescriptorfilenode.cpp
new file mode 100644
index 0000000000..1003dd51c9
--- /dev/null
+++ b/src/plugins/qnx/bardescriptorfilenode.cpp
@@ -0,0 +1,48 @@
+/**************************************************************************
+**
+** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
+**
+** Contact: BlackBerry (qt@blackberry.com)
+** Contact: KDAB (info@kdab.com)
+**
+** 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 Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+****************************************************************************/
+
+#include "bardescriptorfilenode.h"
+
+using namespace Qnx;
+using namespace Qnx::Internal;
+
+BarDescriptorFileNode::BarDescriptorFileNode(const QString &filePath)
+ : ProjectExplorer::FileNode(filePath, ProjectExplorer::ProjectFileType, false)
+{
+}
+
+QList<ProjectExplorer::ProjectAction> BarDescriptorFileNode::supportedActions(ProjectExplorer::Node *node) const
+{
+ Q_UNUSED(node)
+
+ // To disable "Remove File..." and "Rename..." context menu actions
+ return QList<ProjectExplorer::ProjectAction>();
+}