forked from qt-creator/qt-creator
Android: Remove AndroidRunConfiguration::disabledReason()
The formerly handled special case of a missing project file is now handled by the base implementation. Change-Id: Ib3f7d295395b5c406acbd8bdd578fd7190b34dae Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -155,22 +155,4 @@ void AndroidRunConfiguration::updateTargetInformation()
|
|||||||
setDefaultDisplayName(bti.displayName);
|
setDefaultDisplayName(bti.displayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString AndroidRunConfiguration::disabledReason() const
|
|
||||||
{
|
|
||||||
const BuildTargetInfo bti = buildTargetInfo();
|
|
||||||
const QString projectFileName = bti.projectFilePath.toString();
|
|
||||||
|
|
||||||
if (project()->isParsing())
|
|
||||||
return tr("The project file \"%1\" is currently being parsed.").arg(projectFileName);
|
|
||||||
|
|
||||||
if (!project()->hasParsingData()) {
|
|
||||||
if (!bti.projectFilePath.exists())
|
|
||||||
return tr("The project file \"%1\" does not exist.").arg(projectFileName);
|
|
||||||
|
|
||||||
return tr("The project file \"%1\" could not be parsed.").arg(projectFileName);
|
|
||||||
}
|
|
||||||
|
|
||||||
return QString();
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Android
|
} // namespace Android
|
||||||
|
@@ -68,7 +68,6 @@ class ANDROID_EXPORT AndroidRunConfiguration : public ProjectExplorer::RunConfig
|
|||||||
public:
|
public:
|
||||||
explicit AndroidRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
|
explicit AndroidRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
|
||||||
|
|
||||||
QString disabledReason() const override;
|
|
||||||
QWidget *createConfigurationWidget() override;
|
QWidget *createConfigurationWidget() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user