Qnx: Remove unneeded qualifications

Mostly done using the following ruby script:
Dir.glob('**/*.cpp').each { |file|
  next if file =~ %r{src/shared/qbs|/qmljs/}
  s = File.read(file)
  s.scan(/^using namespace (.*);$/) {
    ns = $1
    t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
      before = $1
      char = $2
      if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
        m
      else
        before + char
      end
    }
    if t != s
      puts file
      File.open(file, 'w').write(t)
    end
  }
}

Change-Id: I78a70180927d085822e215ffb2b8ad256301e4a7
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-02-03 23:51:12 +02:00
committed by hjk
parent b001e54599
commit b1c17b39bc
11 changed files with 70 additions and 71 deletions

View File

@@ -171,9 +171,9 @@ void BarDescriptorEditorWidget::initSourcePage()
{ {
TextDocumentPtr doc(new TextDocument); TextDocumentPtr doc(new TextDocument);
doc->setId(Core::Constants::K_DEFAULT_TEXT_EDITOR_ID); // FIXME: This looks odd. doc->setId(Core::Constants::K_DEFAULT_TEXT_EDITOR_ID); // FIXME: This looks odd.
doc->setIndenter(new TextEditor::NormalIndenter); doc->setIndenter(new NormalIndenter);
m_xmlSourceWidget = new TextEditor::TextEditorWidget(this); m_xmlSourceWidget = new TextEditorWidget(this);
m_xmlSourceWidget->setTextDocument(doc); m_xmlSourceWidget->setTextDocument(doc);
m_xmlSourceWidget->setupAsPlainEditor(); m_xmlSourceWidget->setupAsPlainEditor();
addWidget(m_xmlSourceWidget); addWidget(m_xmlSourceWidget);
@@ -187,7 +187,7 @@ void BarDescriptorEditorWidget::initPanelSize(ProjectExplorer::PanelsWidget *pan
panelsWidget->widget()->setMinimumWidth(0); panelsWidget->widget()->setMinimumWidth(0);
} }
TextEditor::TextEditorWidget *BarDescriptorEditorWidget::sourceWidget() const TextEditorWidget *BarDescriptorEditorWidget::sourceWidget() const
{ {
return m_xmlSourceWidget; return m_xmlSourceWidget;
} }

View File

@@ -88,7 +88,7 @@ BlackBerryApiLevelConfiguration::BlackBerryApiLevelConfiguration(const ConfigIns
// The QNX_TARGET value is using Unix-like separator on all platforms. // The QNX_TARGET value is using Unix-like separator on all platforms.
m_targetName = ndkInstallInfo.target.split(sep).first().split(QLatin1Char('/')).last(); m_targetName = ndkInstallInfo.target.split(sep).first().split(QLatin1Char('/')).last();
m_sysRoot = FileName::fromString(ndkInstallInfo.target); m_sysRoot = FileName::fromString(ndkInstallInfo.target);
m_autoDetectionSource = Utils::FileName::fromString(ndkInstallInfo.installationXmlFilePath); m_autoDetectionSource = FileName::fromString(ndkInstallInfo.installationXmlFilePath);
setVersion(QnxVersionNumber(ndkInstallInfo.version)); setVersion(QnxVersionNumber(ndkInstallInfo.version));
ctor(); ctor();
} }
@@ -120,7 +120,7 @@ BlackBerryApiLevelConfiguration::BlackBerryApiLevelConfiguration(const QVariantM
m_targetName = data.value(NDKTargetKey).toString().split(sep).first().split(QLatin1Char('/')).last(); m_targetName = data.value(NDKTargetKey).toString().split(sep).first().split(QLatin1Char('/')).last();
m_sysRoot = FileName::fromString(data.value(NDKTargetKey).toString()); m_sysRoot = FileName::fromString(data.value(NDKTargetKey).toString());
if (data.value(QLatin1String(NDKAutoDetectedKey)).toBool()) if (data.value(QLatin1String(NDKAutoDetectedKey)).toBool())
m_autoDetectionSource = Utils::FileName::fromString(data.value(NDKAutoDetectionSourceKey).toString()); m_autoDetectionSource = FileName::fromString(data.value(NDKAutoDetectionSourceKey).toString());
ctor(); ctor();
} }
@@ -128,8 +128,8 @@ BlackBerryApiLevelConfiguration::BlackBerryApiLevelConfiguration(const QVariantM
void BlackBerryApiLevelConfiguration::ctor() void BlackBerryApiLevelConfiguration::ctor()
{ {
QString host = qnxHost().toString(); QString host = qnxHost().toString();
FileName qmake4Path = FileName::fromString(Utils::HostOsInfo::withExecutableSuffix(host + QLatin1String("/usr/bin/qmake"))); FileName qmake4Path = FileName::fromString(HostOsInfo::withExecutableSuffix(host + QLatin1String("/usr/bin/qmake")));
FileName qmake5Path = FileName::fromString(Utils::HostOsInfo::withExecutableSuffix(host + QLatin1String("/usr/bin/qt5/qmake"))); FileName qmake5Path = FileName::fromString(HostOsInfo::withExecutableSuffix(host + QLatin1String("/usr/bin/qt5/qmake")));
if (qmake4Path.exists()) if (qmake4Path.exists())
m_qmake4BinaryFile = qmake4Path; m_qmake4BinaryFile = qmake4Path;
@@ -157,7 +157,7 @@ bool BlackBerryApiLevelConfiguration::isAutoDetected() const
return !m_autoDetectionSource.isEmpty(); return !m_autoDetectionSource.isEmpty();
} }
Utils::FileName BlackBerryApiLevelConfiguration::autoDetectionSource() const FileName BlackBerryApiLevelConfiguration::autoDetectionSource() const
{ {
return m_autoDetectionSource; return m_autoDetectionSource;
} }

View File

@@ -213,10 +213,10 @@ void BlackBerryApplicationRunner::startFinished(int exitCode, QProcess::ExitStat
} }
} }
ProjectExplorer::RunControl::StopResult BlackBerryApplicationRunner::stop() RunControl::StopResult BlackBerryApplicationRunner::stop()
{ {
if (m_stopping) if (m_stopping)
return ProjectExplorer::RunControl::AsynchronousStop; return RunControl::AsynchronousStop;
m_stopping = true; m_stopping = true;
@@ -238,7 +238,7 @@ ProjectExplorer::RunControl::StopResult BlackBerryApplicationRunner::stop()
} }
m_stopProcess->start(m_deployCmd, args); m_stopProcess->start(m_deployCmd, args);
return ProjectExplorer::RunControl::AsynchronousStop; return RunControl::AsynchronousStop;
} }
bool BlackBerryApplicationRunner::isRunning() const bool BlackBerryApplicationRunner::isRunning() const

View File

@@ -67,7 +67,7 @@ QnxAnalyzeSupport::QnxAnalyzeSupport(QnxRunConfiguration *runConfig,
connect(&m_outputParser, SIGNAL(waitingForConnectionOnPort(quint16)), connect(&m_outputParser, SIGNAL(waitingForConnectionOnPort(quint16)),
SLOT(remoteIsRunning())); SLOT(remoteIsRunning()));
ProjectExplorer::IDevice::ConstPtr dev = ProjectExplorer::DeviceKitInformation::device(runConfig->target()->kit()); IDevice::ConstPtr dev = DeviceKitInformation::device(runConfig->target()->kit());
QnxDeviceConfiguration::ConstPtr qnxDevice = dev.dynamicCast<const QnxDeviceConfiguration>(); QnxDeviceConfiguration::ConstPtr qnxDevice = dev.dynamicCast<const QnxDeviceConfiguration>();
const QString applicationId = Utils::FileName::fromString(runConfig->remoteExecutableFilePath()).fileName(); const QString applicationId = Utils::FileName::fromString(runConfig->remoteExecutableFilePath()).fileName();

View File

@@ -79,32 +79,32 @@ QnxBaseConfiguration::~QnxBaseConfiguration()
{ {
} }
Utils::FileName QnxBaseConfiguration::envFile() const FileName QnxBaseConfiguration::envFile() const
{ {
return m_envFile; return m_envFile;
} }
Utils::FileName QnxBaseConfiguration::qnxTarget() const FileName QnxBaseConfiguration::qnxTarget() const
{ {
return m_qnxTarget; return m_qnxTarget;
} }
Utils::FileName QnxBaseConfiguration::qnxHost() const FileName QnxBaseConfiguration::qnxHost() const
{ {
return m_qnxHost; return m_qnxHost;
} }
Utils::FileName QnxBaseConfiguration::qccCompilerPath() const FileName QnxBaseConfiguration::qccCompilerPath() const
{ {
return m_qccCompiler; return m_qccCompiler;
} }
Utils::FileName QnxBaseConfiguration::armDebuggerPath() const FileName QnxBaseConfiguration::armDebuggerPath() const
{ {
return m_armlev7Debugger; return m_armlev7Debugger;
} }
Utils::FileName QnxBaseConfiguration::x86DebuggerPath() const FileName QnxBaseConfiguration::x86DebuggerPath() const
{ {
return m_x86Debugger; return m_x86Debugger;
} }
@@ -142,24 +142,24 @@ void QnxBaseConfiguration::ctor(const FileName &envScript)
#endif #endif
m_envFile = envScript; m_envFile = envScript;
m_qnxEnv = QnxUtils::qnxEnvironmentFromEnvFile(m_envFile.toString()); m_qnxEnv = QnxUtils::qnxEnvironmentFromEnvFile(m_envFile.toString());
foreach (const Utils::EnvironmentItem &item, m_qnxEnv) { foreach (const EnvironmentItem &item, m_qnxEnv) {
if (item.name == QLatin1String("QNX_TARGET")) if (item.name == QLatin1String("QNX_TARGET"))
m_qnxTarget = Utils::FileName::fromString(item.value); m_qnxTarget = FileName::fromString(item.value);
else if (item.name == QLatin1String("QNX_HOST")) else if (item.name == QLatin1String("QNX_HOST"))
m_qnxHost = Utils::FileName::fromString(item.value); m_qnxHost = FileName::fromString(item.value);
} }
FileName qccPath = FileName::fromString(Utils::HostOsInfo::withExecutableSuffix( FileName qccPath = FileName::fromString(HostOsInfo::withExecutableSuffix(
m_qnxHost.toString() + QLatin1String("/usr/bin/qcc"))); m_qnxHost.toString() + QLatin1String("/usr/bin/qcc")));
FileName armlev7GdbPath = FileName::fromString(Utils::HostOsInfo::withExecutableSuffix( FileName armlev7GdbPath = FileName::fromString(HostOsInfo::withExecutableSuffix(
m_qnxHost.toString() + QLatin1String("/usr/bin/ntoarm-gdb"))); m_qnxHost.toString() + QLatin1String("/usr/bin/ntoarm-gdb")));
if (!armlev7GdbPath.exists()) { if (!armlev7GdbPath.exists()) {
armlev7GdbPath = FileName::fromString(Utils::HostOsInfo::withExecutableSuffix( armlev7GdbPath = FileName::fromString(HostOsInfo::withExecutableSuffix(
m_qnxHost.toString() + QLatin1String("/usr/bin/ntoarmv7-gdb"))); m_qnxHost.toString() + QLatin1String("/usr/bin/ntoarmv7-gdb")));
} }
FileName x86GdbPath = FileName::fromString(Utils::HostOsInfo::withExecutableSuffix( FileName x86GdbPath = FileName::fromString(HostOsInfo::withExecutableSuffix(
m_qnxHost.toString() + QLatin1String("/usr/bin/ntox86-gdb"))); m_qnxHost.toString() + QLatin1String("/usr/bin/ntox86-gdb")));
if (qccPath.exists()) if (qccPath.exists())
@@ -175,7 +175,7 @@ void QnxBaseConfiguration::ctor(const FileName &envScript)
QVariant QnxBaseConfiguration::createDebuggerItem(QnxArchitecture arch, QVariant QnxBaseConfiguration::createDebuggerItem(QnxArchitecture arch,
const QString &displayName) const QString &displayName)
{ {
Utils::FileName command = (arch == X86) ? x86DebuggerPath() : armDebuggerPath(); FileName command = (arch == X86) ? x86DebuggerPath() : armDebuggerPath();
Debugger::DebuggerItem debugger; Debugger::DebuggerItem debugger;
debugger.setCommand(command); debugger.setCommand(command);
debugger.setEngineType(Debugger::GdbEngineType); debugger.setEngineType(Debugger::GdbEngineType);
@@ -190,13 +190,13 @@ QnxToolChain *QnxBaseConfiguration::createToolChain(QnxArchitecture arch,
const QString &displayName, const QString &displayName,
const QString &ndkPath) const QString &ndkPath)
{ {
QnxToolChain *toolChain = new QnxToolChain(ProjectExplorer::ToolChain::AutoDetection); QnxToolChain *toolChain = new QnxToolChain(ToolChain::AutoDetection);
toolChain->resetToolChain(m_qccCompiler); toolChain->resetToolChain(m_qccCompiler);
toolChain->setTargetAbi(Abi((arch == Qnx::ArmLeV7) ? Abi::ArmArchitecture : Abi::X86Architecture, toolChain->setTargetAbi(Abi((arch == Qnx::ArmLeV7) ? Abi::ArmArchitecture : Abi::X86Architecture,
Abi::LinuxOS, Abi::GenericLinuxFlavor, Abi::ElfFormat, 32)); Abi::LinuxOS, Abi::GenericLinuxFlavor, Abi::ElfFormat, 32));
toolChain->setDisplayName(displayName); toolChain->setDisplayName(displayName);
toolChain->setNdkPath(ndkPath); toolChain->setNdkPath(ndkPath);
ProjectExplorer::ToolChainManager::registerToolChain(toolChain); ToolChainManager::registerToolChain(toolChain);
return toolChain; return toolChain;
} }

View File

@@ -61,7 +61,7 @@ using namespace Debugger;
namespace Qnx { namespace Qnx {
namespace Internal { namespace Internal {
QnxConfiguration::QnxConfiguration(const Utils::FileName &sdpEnvFile) QnxConfiguration::QnxConfiguration(const FileName &sdpEnvFile)
: QnxBaseConfiguration(sdpEnvFile) : QnxBaseConfiguration(sdpEnvFile)
{ {
readInformation(); readInformation();
@@ -120,16 +120,16 @@ void QnxConfiguration::deactivate()
if (!isActive()) if (!isActive())
return; return;
QList<ProjectExplorer::ToolChain *> toolChainsToRemove; QList<ToolChain *> toolChainsToRemove;
QList<Debugger::DebuggerItem> debuggersToRemove; QList<DebuggerItem> debuggersToRemove;
foreach (ProjectExplorer::ToolChain *tc, foreach (ToolChain *tc,
ProjectExplorer::ToolChainManager::toolChains()) { ToolChainManager::toolChains()) {
if (tc->compilerCommand() == qccCompilerPath()) if (tc->compilerCommand() == qccCompilerPath())
toolChainsToRemove.append(tc); toolChainsToRemove.append(tc);
} }
foreach (Debugger::DebuggerItem debuggerItem, foreach (DebuggerItem debuggerItem,
Debugger::DebuggerItemManager::debuggers()) { DebuggerItemManager::debuggers()) {
if (debuggerItem.command() == armDebuggerPath() || if (debuggerItem.command() == armDebuggerPath() ||
debuggerItem.command() == x86DebuggerPath()) debuggerItem.command() == x86DebuggerPath())
debuggersToRemove.append(debuggerItem); debuggersToRemove.append(debuggerItem);
@@ -142,11 +142,11 @@ void QnxConfiguration::deactivate()
KitManager::deregisterKit(kit); KitManager::deregisterKit(kit);
} }
foreach (ProjectExplorer::ToolChain *tc, toolChainsToRemove) foreach (ToolChain *tc, toolChainsToRemove)
ProjectExplorer::ToolChainManager::deregisterToolChain(tc); ToolChainManager::deregisterToolChain(tc);
foreach (Debugger::DebuggerItem debuggerItem, debuggersToRemove) foreach (DebuggerItem debuggerItem, debuggersToRemove)
Debugger::DebuggerItemManager:: DebuggerItemManager::
deregisterDebugger(debuggerItem.id()); deregisterDebugger(debuggerItem.id());
} }
@@ -154,16 +154,16 @@ bool QnxConfiguration::isActive() const
{ {
bool hasToolChain = false; bool hasToolChain = false;
bool hasDebugger = false; bool hasDebugger = false;
foreach (ProjectExplorer::ToolChain *tc, foreach (ToolChain *tc,
ProjectExplorer::ToolChainManager::toolChains()) { ToolChainManager::toolChains()) {
if (tc->compilerCommand() == qccCompilerPath()) { if (tc->compilerCommand() == qccCompilerPath()) {
hasToolChain = true; hasToolChain = true;
break; break;
} }
} }
foreach (Debugger::DebuggerItem debuggerItem, foreach (DebuggerItem debuggerItem,
Debugger::DebuggerItemManager::debuggers()) { DebuggerItemManager::debuggers()) {
if (debuggerItem.command() == armDebuggerPath() || if (debuggerItem.command() == armDebuggerPath() ||
debuggerItem.command() == x86DebuggerPath()) { debuggerItem.command() == x86DebuggerPath()) {
hasDebugger = true; hasDebugger = true;
@@ -179,7 +179,7 @@ bool QnxConfiguration::canCreateKits() const
return isValid() && (qnxQtVersion(ArmLeV7) || qnxQtVersion(X86)); return isValid() && (qnxQtVersion(ArmLeV7) || qnxQtVersion(X86));
} }
Utils::FileName QnxConfiguration::sdpPath() const FileName QnxConfiguration::sdpPath() const
{ {
return envFile().parentDir(); return envFile().parentDir();
} }
@@ -200,7 +200,7 @@ QnxQtVersion* QnxConfiguration::qnxQtVersion(QnxArchitecture arch) const
return 0; return 0;
} }
ProjectExplorer::Kit *QnxConfiguration::createKit(QnxArchitecture arch, Kit *QnxConfiguration::createKit(QnxArchitecture arch,
QnxToolChain *toolChain, QnxToolChain *toolChain,
const QVariant &debuggerItemId, const QVariant &debuggerItemId,
const QString &displayName) const QString &displayName)
@@ -210,7 +210,7 @@ ProjectExplorer::Kit *QnxConfiguration::createKit(QnxArchitecture arch,
if (!qnxQt) if (!qnxQt)
return 0; return 0;
Kit *kit = new ProjectExplorer::Kit; Kit *kit = new Kit;
QtKitInformation::setQtVersion(kit, qnxQt); QtKitInformation::setQtVersion(kit, qnxQt);
ToolChainKitInformation::setToolChain(kit, toolChain); ToolChainKitInformation::setToolChain(kit, toolChain);

View File

@@ -72,7 +72,7 @@ QnxDebugSupport::QnxDebugSupport(QnxRunConfiguration *runConfig, Debugger::Debug
this, &QnxDebugSupport::handleAdapterSetupRequested); this, &QnxDebugSupport::handleAdapterSetupRequested);
const QString applicationId = Utils::FileName::fromString(runConfig->remoteExecutableFilePath()).fileName(); const QString applicationId = Utils::FileName::fromString(runConfig->remoteExecutableFilePath()).fileName();
ProjectExplorer::IDevice::ConstPtr dev = ProjectExplorer::DeviceKitInformation::device(runConfig->target()->kit()); IDevice::ConstPtr dev = DeviceKitInformation::device(runConfig->target()->kit());
QnxDeviceConfiguration::ConstPtr qnxDevice = dev.dynamicCast<const QnxDeviceConfiguration>(); QnxDeviceConfiguration::ConstPtr qnxDevice = dev.dynamicCast<const QnxDeviceConfiguration>();
m_slog2Info = new Slog2InfoRunner(applicationId, qnxDevice, this); m_slog2Info = new Slog2InfoRunner(applicationId, qnxDevice, this);

View File

@@ -95,7 +95,7 @@ void QnxDeviceProcess::doSignal(int sig)
} }
class QnxPortsGatheringMethod : public ProjectExplorer::PortsGatheringMethod class QnxPortsGatheringMethod : public PortsGatheringMethod
{ {
// TODO: The command is probably needlessly complicated because the parsing method // TODO: The command is probably needlessly complicated because the parsing method
// used to be fixed. These two can now be matched to each other. // used to be fixed. These two can now be matched to each other.
@@ -177,7 +177,7 @@ int QnxDeviceConfiguration::qnxVersion() const
void QnxDeviceConfiguration::updateVersionNumber() const void QnxDeviceConfiguration::updateVersionNumber() const
{ {
QEventLoop eventLoop; QEventLoop eventLoop;
ProjectExplorer::SshDeviceProcess versionNumberProcess(sharedFromThis()); SshDeviceProcess versionNumberProcess(sharedFromThis());
QObject::connect(&versionNumberProcess, SIGNAL(finished()), &eventLoop, SLOT(quit())); QObject::connect(&versionNumberProcess, SIGNAL(finished()), &eventLoop, SLOT(quit()));
QObject::connect(&versionNumberProcess, SIGNAL(error(QProcess::ProcessError)), &eventLoop, SLOT(quit())); QObject::connect(&versionNumberProcess, SIGNAL(error(QProcess::ProcessError)), &eventLoop, SLOT(quit()));
@@ -218,27 +218,27 @@ QVariantMap QnxDeviceConfiguration::toMap() const
return map; return map;
} }
ProjectExplorer::IDevice::Ptr QnxDeviceConfiguration::clone() const IDevice::Ptr QnxDeviceConfiguration::clone() const
{ {
return Ptr(new QnxDeviceConfiguration(*this)); return Ptr(new QnxDeviceConfiguration(*this));
} }
ProjectExplorer::PortsGatheringMethod::Ptr QnxDeviceConfiguration::portsGatheringMethod() const PortsGatheringMethod::Ptr QnxDeviceConfiguration::portsGatheringMethod() const
{ {
return ProjectExplorer::PortsGatheringMethod::Ptr(new QnxPortsGatheringMethod); return PortsGatheringMethod::Ptr(new QnxPortsGatheringMethod);
} }
ProjectExplorer::DeviceProcessList *QnxDeviceConfiguration::createProcessListModel(QObject *parent) const DeviceProcessList *QnxDeviceConfiguration::createProcessListModel(QObject *parent) const
{ {
return new QnxDeviceProcessList(sharedFromThis(), parent); return new QnxDeviceProcessList(sharedFromThis(), parent);
} }
ProjectExplorer::DeviceTester *QnxDeviceConfiguration::createDeviceTester() const DeviceTester *QnxDeviceConfiguration::createDeviceTester() const
{ {
return new QnxDeviceTester; return new QnxDeviceTester;
} }
ProjectExplorer::DeviceProcess *QnxDeviceConfiguration::createProcess(QObject *parent) const DeviceProcess *QnxDeviceConfiguration::createProcess(QObject *parent) const
{ {
return new QnxDeviceProcess(sharedFromThis(), parent); return new QnxDeviceProcess(sharedFromThis(), parent);
} }
@@ -270,9 +270,9 @@ void QnxDeviceConfiguration::executeAction(Core::Id actionId, QWidget *parent)
} }
} }
ProjectExplorer::DeviceProcessSignalOperation::Ptr QnxDeviceConfiguration::signalOperation() const DeviceProcessSignalOperation::Ptr QnxDeviceConfiguration::signalOperation() const
{ {
return ProjectExplorer::DeviceProcessSignalOperation::Ptr( return DeviceProcessSignalOperation::Ptr(
new QnxDeviceProcessSignalOperation(sshParameters())); new QnxDeviceProcessSignalOperation(sshParameters()));
} }

View File

@@ -143,7 +143,7 @@ bool QnxPlugin::initialize(const QStringList &arguments, QString *errorString)
} }
addAutoReleasedObject(new BarDescriptorEditorFactory); addAutoReleasedObject(new BarDescriptorEditorFactory);
connect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsLoaded()), connect(KitManager::instance(), SIGNAL(kitsLoaded()),
BlackBerryConfigurationManager::instance(), SLOT(loadSettings())); BlackBerryConfigurationManager::instance(), SLOT(loadSettings()));
return true; return true;
@@ -151,8 +151,7 @@ bool QnxPlugin::initialize(const QStringList &arguments, QString *errorString)
void QnxPlugin::extensionsInitialized() void QnxPlugin::extensionsInitialized()
{ {
ProjectExplorer::TaskHub::addCategory(Constants::QNX_TASK_CATEGORY_BARDESCRIPTOR, TaskHub::addCategory(Constants::QNX_TASK_CATEGORY_BARDESCRIPTOR, tr("BAR Descriptor"));
tr("BAR Descriptor"));
// Debug support // Debug support
QnxAttachDebugSupport *debugSupport = new QnxAttachDebugSupport(this); QnxAttachDebugSupport *debugSupport = new QnxAttachDebugSupport(this);
@@ -169,7 +168,7 @@ void QnxPlugin::extensionsInitialized()
Core::Command *cmd = Core::ActionManager::registerAction(m_attachToQnxApplication, "Debugger.AttachToQnxApplication", globalcontext); Core::Command *cmd = Core::ActionManager::registerAction(m_attachToQnxApplication, "Debugger.AttachToQnxApplication", globalcontext);
mstart->addAction(cmd, Constants::QNX_DEBUGGING_GROUP); mstart->addAction(cmd, Constants::QNX_DEBUGGING_GROUP);
connect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsChanged()), this, SLOT(updateDebuggerActions())); connect(KitManager::instance(), SIGNAL(kitsChanged()), this, SLOT(updateDebuggerActions()));
} }
ExtensionSystem::IPlugin::ShutdownFlag QnxPlugin::aboutToShutdown() ExtensionSystem::IPlugin::ShutdownFlag QnxPlugin::aboutToShutdown()

View File

@@ -88,8 +88,8 @@ static DebuggerStartParameters createDebuggerStartParameters(const QnxRunConfigu
params.closeMode = KillAtClose; params.closeMode = KillAtClose;
params.processArgs = runConfig->arguments().join(QLatin1Char(' ')); params.processArgs = runConfig->arguments().join(QLatin1Char(' '));
Debugger::DebuggerRunConfigurationAspect *aspect DebuggerRunConfigurationAspect *aspect
= runConfig->extraAspect<Debugger::DebuggerRunConfigurationAspect>(); = runConfig->extraAspect<DebuggerRunConfigurationAspect>();
if (aspect->useQmlDebugger()) { if (aspect->useQmlDebugger()) {
params.languages |= QmlLanguage; params.languages |= QmlLanguage;
params.qmlServerAddress = device->sshParameters().host; params.qmlServerAddress = device->sshParameters().host;
@@ -97,13 +97,13 @@ static DebuggerStartParameters createDebuggerStartParameters(const QnxRunConfigu
} }
if (aspect->useCppDebugger()) if (aspect->useCppDebugger())
params.languages |= Debugger::CppLanguage; params.languages |= CppLanguage;
if (const ProjectExplorer::Project *project = runConfig->target()->project()) { if (const Project *project = runConfig->target()->project()) {
params.projectSourceDirectory = project->projectDirectory().toString(); params.projectSourceDirectory = project->projectDirectory().toString();
if (const ProjectExplorer::BuildConfiguration *buildConfig = runConfig->target()->activeBuildConfiguration()) if (const BuildConfiguration *buildConfig = runConfig->target()->activeBuildConfiguration())
params.projectBuildDirectory = buildConfig->buildDirectory().toString(); params.projectBuildDirectory = buildConfig->buildDirectory().toString();
params.projectSourceFiles = project->files(ProjectExplorer::Project::ExcludeGeneratedFiles); params.projectSourceFiles = project->files(Project::ExcludeGeneratedFiles);
} }
QnxQtVersion *qtVersion = QnxQtVersion *qtVersion =

View File

@@ -58,14 +58,14 @@ QString QnxUtils::addQuotes(const QString &string)
return QLatin1Char('"') + string + QLatin1Char('"'); return QLatin1Char('"') + string + QLatin1Char('"');
} }
Qnx::QnxArchitecture QnxUtils::cpudirToArch(const QString &cpuDir) QnxArchitecture QnxUtils::cpudirToArch(const QString &cpuDir)
{ {
if (cpuDir == QLatin1String("x86")) if (cpuDir == QLatin1String("x86"))
return Qnx::X86; return X86;
else if (cpuDir == QLatin1String("armle-v7")) else if (cpuDir == QLatin1String("armle-v7"))
return Qnx::ArmLeV7; return ArmLeV7;
else else
return Qnx::UnknownArch; return UnknownArch;
} }
QStringList QnxUtils::searchPaths(QnxAbstractQtVersion *qtVersion) QStringList QnxUtils::searchPaths(QnxAbstractQtVersion *qtVersion)