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);
|
||||
}
|
||||
|
||||
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
|
||||
|
@@ -68,7 +68,6 @@ class ANDROID_EXPORT AndroidRunConfiguration : public ProjectExplorer::RunConfig
|
||||
public:
|
||||
explicit AndroidRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
|
||||
|
||||
QString disabledReason() const override;
|
||||
QWidget *createConfigurationWidget() override;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user