diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp index c5e1c70ea67..80678ba841e 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp @@ -25,32 +25,10 @@ #include "customexecutablerunconfiguration.h" -#include "abi.h" -#include "buildconfiguration.h" #include "devicesupport/devicemanager.h" -#include "environmentaspect.h" #include "localenvironmentaspect.h" -#include "project.h" -#include "runcontrol.h" #include "target.h" -#include - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - using namespace Utils; namespace ProjectExplorer { @@ -86,9 +64,9 @@ CustomExecutableRunConfiguration::CustomExecutableRunConfiguration(Target *targe setDefaultDisplayName(defaultDisplayName()); } -QString CustomExecutableRunConfiguration::rawExecutable() const +FilePath CustomExecutableRunConfiguration::executable() const { - return aspect()->executable().toString(); + return aspect()->executable(); } bool CustomExecutableRunConfiguration::isEnabled() const @@ -116,16 +94,15 @@ Runnable CustomExecutableRunConfiguration::runnable() const QString CustomExecutableRunConfiguration::defaultDisplayName() const { - if (rawExecutable().isEmpty()) + if (executable().isEmpty()) return tr("Custom Executable"); - else - return tr("Run %1").arg(QDir::toNativeSeparators(rawExecutable())); + return tr("Run %1").arg(executable().toUserOutput()); } Tasks CustomExecutableRunConfiguration::checkForIssues() const { Tasks tasks; - if (rawExecutable().isEmpty()) { + if (executable().isEmpty()) { tasks << createConfigurationIssue(tr("You need to set an executable in the custom run " "configuration.")); } diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.h b/src/plugins/projectexplorer/customexecutablerunconfiguration.h index d7d90193bc5..c504658796a 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.h +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.h @@ -46,7 +46,7 @@ private: Tasks checkForIssues() const override; void configurationDialogFinished(); - QString rawExecutable() const; + Utils::FilePath executable() const; }; class CustomExecutableRunConfigurationFactory : public FixedRunConfigurationFactory