diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-05-16 10:09:15 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-05-16 10:09:15 +0200 |
commit | ccefc5cf471ae68f44d25f8533fd0e0c44fb8bf8 (patch) | |
tree | a143737514a07c071df395d54ae23666773b264c /src | |
parent | 5cd1bb6f73bcf2fbe5d514d69cec372a672afdd8 (diff) | |
parent | 23ac1d18e1be8d898adf44dde745ba7c259beb3c (diff) | |
download | qt-creator-ccefc5cf471ae68f44d25f8533fd0e0c44fb8bf8.tar.gz |
Merge remote-tracking branch 'origin/4.6' into 4.7
Conflicts:
src/plugins/qnx/qnxplugin.cpp
Change-Id: I8ede5fa9c8daf3001e41fcba7cbee68edb9db3a6
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/android/androidtoolchain.cpp | 4 | ||||
-rw-r--r-- | src/plugins/debugger/qml/qmlengine.cpp | 4 | ||||
-rw-r--r-- | src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.cpp | 4 | ||||
-rw-r--r-- | src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.h | 2 | ||||
-rw-r--r-- | src/plugins/qnx/qnxconstants.h | 2 | ||||
-rw-r--r-- | src/plugins/qnx/qnxdeployconfiguration.cpp | 2 | ||||
-rw-r--r-- | src/plugins/qnx/qnxplugin.cpp | 20 |
7 files changed, 33 insertions, 5 deletions
diff --git a/src/plugins/android/androidtoolchain.cpp b/src/plugins/android/androidtoolchain.cpp index 55940fa5a9..ffdef58e9d 100644 --- a/src/plugins/android/androidtoolchain.cpp +++ b/src/plugins/android/androidtoolchain.cpp @@ -116,7 +116,9 @@ static void addSystemHeaderPaths(QList<ProjectExplorer::HeaderPath> &paths, const Utils::FileName ndkPath = AndroidConfigurations::currentConfig().ndkLocation(); // Get short version (for example 4.9) - const QString clangVersion = version.left(version.lastIndexOf('.')); + auto versionNumber = QVersionNumber::fromString(version); + const QString clangVersion = QString("%1.%2") + .arg(versionNumber.majorVersion()).arg(versionNumber.minorVersion()); Utils::FileName stdcppPath = ndkPath; stdcppPath.appendPath("sources/cxx-stl/gnu-libstdc++/" + clangVersion); Utils::FileName includePath = stdcppPath; diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index fa69e81653..b428a88ea3 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -2166,6 +2166,10 @@ void QmlEnginePrivate::handleFrame(const QVariantMap &response) watchHandler->insertItem(item); evaluate(exp, -1, [this, iname, exp](const QVariantMap &response) { handleEvaluateExpression(response, iname, exp); + + // If there are no scopes, "this" may be the only thing to look up. + if (currentFrameScopes.isEmpty()) + checkForFinishedUpdate(); }); } diff --git a/src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.cpp b/src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.cpp index 2d6164c9ae..f90f9843c2 100644 --- a/src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.cpp +++ b/src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.cpp @@ -38,7 +38,7 @@ using namespace ProjectExplorer; DeviceCheckBuildStep::DeviceCheckBuildStep(BuildStepList *bsl) : BuildStep(bsl, stepId()) { - setDefaultDisplayName(stepDisplayName()); + setDefaultDisplayName(displayName()); } bool DeviceCheckBuildStep::init(QList<const BuildStep *> &earlierSteps) @@ -92,7 +92,7 @@ Core::Id DeviceCheckBuildStep::stepId() return "ProjectExplorer.DeviceCheckBuildStep"; } -QString DeviceCheckBuildStep::stepDisplayName() +QString DeviceCheckBuildStep::displayName() { return tr("Check for a configured device"); } diff --git a/src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.h b/src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.h index 7886a9e8ab..8a114e1e6c 100644 --- a/src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.h +++ b/src/plugins/projectexplorer/devicesupport/devicecheckbuildstep.h @@ -45,7 +45,7 @@ public: BuildStepConfigWidget *createConfigWidget() override; static Core::Id stepId(); - static QString stepDisplayName(); + static QString displayName(); }; } // namespace ProjectExplorer diff --git a/src/plugins/qnx/qnxconstants.h b/src/plugins/qnx/qnxconstants.h index f65dcf30c7..ecd31d6b3d 100644 --- a/src/plugins/qnx/qnxconstants.h +++ b/src/plugins/qnx/qnxconstants.h @@ -39,6 +39,8 @@ const char QNX_QNX_FEATURE[] = "QtSupport.Wizards.FeatureQNX"; const char QNX_QNX_RUNCONFIGURATION_PREFIX[] = "Qt4ProjectManager.QNX.QNXRunConfiguration."; +const char QNX_QNX_DEPLOYCONFIGURATION_ID[] = "Qt4ProjectManager.QNX.QNXDeployConfiguration"; + const char QNX_QNX_OS_TYPE[] = "QnxOsType"; const char QNX_DEBUG_EXECUTABLE[] = "pdebug"; diff --git a/src/plugins/qnx/qnxdeployconfiguration.cpp b/src/plugins/qnx/qnxdeployconfiguration.cpp index 3288bb4fbc..7993a90e22 100644 --- a/src/plugins/qnx/qnxdeployconfiguration.cpp +++ b/src/plugins/qnx/qnxdeployconfiguration.cpp @@ -60,7 +60,7 @@ NamedWidget *QnxDeployConfiguration::createConfigWidget() QnxDeployConfigurationFactory::QnxDeployConfigurationFactory() { registerDeployConfiguration<QnxDeployConfiguration> - ("Qt4ProjectManager.QNX.QNXDeployConfiguration"); + (Constants::QNX_QNX_DEPLOYCONFIGURATION_ID); setDefaultDisplayName(QnxDeployConfiguration::tr("Deploy to QNX Device")); addSupportedTargetDeviceType(QnxDeviceFactory::deviceType()); } diff --git a/src/plugins/qnx/qnxplugin.cpp b/src/plugins/qnx/qnxplugin.cpp index 4bc3a7e968..850efa48dc 100644 --- a/src/plugins/qnx/qnxplugin.cpp +++ b/src/plugins/qnx/qnxplugin.cpp @@ -45,6 +45,7 @@ #include <coreplugin/icontext.h> #include <coreplugin/icore.h> +#include <projectexplorer/devicesupport/devicecheckbuildstep.h> #include <projectexplorer/kitinformation.h> #include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorerconstants.h> @@ -55,6 +56,9 @@ #include <projectexplorer/target.h> #include <projectexplorer/toolchain.h> +#include <remotelinux/genericdirectuploadstep.h> +#include <remotelinux/remotelinuxcheckforfreediskspacestep.h> + #include <qtsupport/qtkitinformation.h> #include <QAction> @@ -64,6 +68,19 @@ using namespace ProjectExplorer; namespace Qnx { namespace Internal { +template <class Step> +class GenericQnxDeployStepFactory : public BuildStepFactory +{ +public: + GenericQnxDeployStepFactory() + { + registerStep<Step>(Step::stepId()); + setDisplayName(Step::displayName()); + setSupportedConfiguration(Constants::QNX_QNX_DEPLOYCONFIGURATION_ID); + setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_DEPLOY); + } +}; + class QnxPluginPrivate { public: @@ -76,6 +93,9 @@ public: QnxQtVersionFactory qtVersionFactory; QnxDeviceFactory deviceFactory; QnxDeployConfigurationFactory deployConfigFactory; + GenericQnxDeployStepFactory<RemoteLinux::GenericDirectUploadStep> directUploadDeployFactory; + GenericQnxDeployStepFactory<RemoteLinux::RemoteLinuxCheckForFreeDiskSpaceStep> checkForFreeDiskSpaceDeployFactory; + GenericQnxDeployStepFactory<DeviceCheckBuildStep> checkBuildDeployFactory; QnxRunConfigurationFactory runConfigFactory; QnxSettingsPage settingsPage; QnxToolChainFactory toolChainFactory; |