Пример #1
0
QStringList RemoteLinuxDeployConfigurationFactory::availableCreationIds(Target *parent) const
{
    QStringList ids;
    if (RemoteLinuxUtils::hasLinuxQt(parent))
        ids << genericDeployConfigurationId();
    return ids;
}
QList<Core::Id> RemoteLinuxDeployConfigurationFactory::availableCreationIds(Target *target) const
{
    QList<Core::Id> ids;
    if (!target->project()->supportsKit(target->kit()))
        return ids;

    const Core::Id deviceType = DeviceTypeKitInformation::deviceTypeId(target->kit());
    if (deviceType != RemoteLinux::Constants::GenericLinuxOsType)
        return ids;

    ids << genericDeployConfigurationId();
    return ids;
}
QList<Core::Id> RemoteLinuxDeployConfigurationFactory::availableCreationIds(Target *parent) const
{
    QList<Core::Id> ids;
    if (!parent->project()->supportsKit(parent->kit()))
        return ids;
    ProjectExplorer::ToolChain *tc
            = ProjectExplorer::ToolChainKitInformation::toolChain(parent->kit());
    if (!tc || tc->targetAbi().os() != ProjectExplorer::Abi::LinuxOS)
        return ids;
    const Core::Id devType = ProjectExplorer::DeviceTypeKitInformation::deviceTypeId(parent->kit());
    if (devType == Constants::GenericLinuxOsType)
        ids << genericDeployConfigurationId();
    return ids;
}
Пример #4
0
QString RemoteLinuxDeployConfigurationFactory::displayNameForId(const QString &id) const
{
    if (id == genericDeployConfigurationId())
        return genericLinuxDisplayName();
    return QString();
}