forked from qt-creator/qt-creator
Android: Introduce constant "firstQtWithAndroidDeployQt"
Replace a couple of QVersionNumber(5, 4, 0) with it. Change-Id: Iebc39a534500992c8eb4d72d34d71fe621b8c7c0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -149,7 +149,7 @@ AndroidDeployQtStep::AndroidDeployQtStep(BuildStepList *parent, Id id)
|
||||
m_uninstallPreviousPackage.setValue(false);
|
||||
|
||||
const QtSupport::QtVersion * const qt = QtSupport::QtKitAspect::qtVersion(kit());
|
||||
const bool forced = qt && qt->qtVersion() < QVersionNumber(5, 4, 0);
|
||||
const bool forced = qt && qt->qtVersion() < AndroidManager::firstQtWithAndroidDeployQt;
|
||||
if (forced) {
|
||||
m_uninstallPreviousPackage.setValue(true);
|
||||
m_uninstallPreviousPackage.setEnabled(false);
|
||||
@@ -277,7 +277,7 @@ bool AndroidDeployQtStep::init()
|
||||
if (m_uninstallPreviousPackageRun)
|
||||
m_manifestName = AndroidManager::manifestPath(target());
|
||||
|
||||
m_useAndroiddeployqt = version->qtVersion() >= QVersionNumber(5, 4, 0);
|
||||
m_useAndroiddeployqt = version->qtVersion() >= AndroidManager::firstQtWithAndroidDeployQt;
|
||||
if (m_useAndroiddeployqt) {
|
||||
const QString buildKey = target()->activeBuildKey();
|
||||
const ProjectNode *node = target()->project()->findNodeForBuildKey(buildKey);
|
||||
|
||||
Reference in New Issue
Block a user