QString Qt4UiCodeModelSupport::uicCommand() const { QtSupport::BaseQtVersion *version; if (m_project->needsConfiguration()) { version = QtSupport::QtProfileInformation::qtVersion(ProjectExplorer::ProfileManager::instance()->defaultProfile()); } else { ProjectExplorer::Target *target = m_project->activeTarget(); version = QtSupport::QtProfileInformation::qtVersion(target->profile()); } return version ? version->uicCommand() : QString(); }
Debugger::DebuggerStartParameters BlackBerryRunControlFactory::startParameters( const BlackBerryRunConfiguration *runConfig) { Debugger::DebuggerStartParameters params; ProjectExplorer::Target *target = runConfig->target(); ProjectExplorer::Profile *profile = target->profile(); params.startMode = Debugger::AttachToRemoteServer; params.debuggerCommand = Debugger::DebuggerProfileInformation::debuggerCommand(profile).toString(); params.sysRoot = ProjectExplorer::SysRootProfileInformation::sysRoot(profile).toString(); if (ProjectExplorer::ToolChain *tc = ProjectExplorer::ToolChainProfileInformation::toolChain(profile)) { params.toolChainAbi = tc->targetAbi(); params.remoteArchitecture = ProjectExplorer::Abi::toString(tc->targetAbi().architecture()); } params.executable = runConfig->localExecutableFilePath(); params.remoteChannel = runConfig->deployConfiguration()->deviceHost() + QLatin1String(":8000"); params.displayName = runConfig->displayName(); params.remoteSetupNeeded = true; if (runConfig->debuggerAspect()->useQmlDebugger()) { BlackBerryDeviceConfiguration::ConstPtr device = BlackBerryDeviceConfiguration::device(runConfig->target()->profile()); if (device) { params.qmlServerAddress = device->sshParameters().host; params.qmlServerPort = runConfig->debuggerAspect()->qmlDebugServerPort(); params.languages |= Debugger::QmlLanguage; } } if (runConfig->debuggerAspect()->useCppDebugger()) params.languages |= Debugger::CppLanguage; if (const ProjectExplorer::Project *project = runConfig->target()->project()) { params.projectSourceDirectory = project->projectDirectory(); if (const ProjectExplorer::BuildConfiguration *buildConfig = runConfig->target()->activeBuildConfiguration()) { params.projectBuildDirectory = buildConfig->buildDirectory(); } params.projectSourceFiles = project->files(ProjectExplorer::Project::ExcludeGeneratedFiles); } BlackBerryQtVersion *qtVersion = dynamic_cast<BlackBerryQtVersion *>(QtSupport::QtProfileInformation::qtVersion(profile)); if (qtVersion) params.solibSearchPath = QnxUtils::searchPaths(qtVersion); return params; }