~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/qbsprojectmanager/qbsdeployconfigurationfactory.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "qbsproject.h"
34
34
 
35
35
#include <projectexplorer/buildsteplist.h>
 
36
#include <projectexplorer/kitinformation.h>
 
37
#include <projectexplorer/projectexplorerconstants.h>
36
38
#include <projectexplorer/target.h>
37
39
 
38
40
namespace QbsProjectManager {
48
50
 
49
51
static Core::Id genericQbsDeployConfigurationId()
50
52
{
51
 
    return Core::Id("Qbs.Deploy");
 
53
    return "Qbs.Deploy";
52
54
}
53
55
 
54
56
// --------------------------------------------------------------------
88
90
QList<Core::Id> QbsDeployConfigurationFactory::availableCreationIds(ProjectExplorer::Target *parent) const
89
91
{
90
92
    QList<Core::Id> ids;
91
 
    if (qobject_cast<QbsProject *>(parent->project()))
 
93
    const Core::Id deviceId = ProjectExplorer::DeviceKitInformation::deviceId(parent->kit());
 
94
    if (qobject_cast<QbsProject *>(parent->project())
 
95
            && deviceId == ProjectExplorer::Constants::DESKTOP_DEVICE_ID) {
92
96
        ids << genericQbsDeployConfigurationId();
 
97
    }
93
98
    return ids;
94
99
}
95
100