summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2010-09-27 15:04:58 +0100
committerdt <qtc-committer@nokia.com>2010-09-27 15:56:37 +0100
commit5adeb48e52c54c3c2385800f3f00ccda35d3050c (patch)
treeb0da409e97a89cf09b75e4933830f3f171201469 /src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
parent8cfcb1dffd5090cc9b5ea642443967b11838afb0 (diff)
downloadqt-creator-5adeb48e52c54c3c2385800f3f00ccda35d3050c.tar.gz
ApplicationRC: make exectuable() and co. return expanded values
Diffstat (limited to 'src/plugins/projectexplorer/customexecutablerunconfiguration.cpp')
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
index 475b24f7ef..a72c44dd74 100644
--- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
+++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
@@ -281,8 +281,8 @@ void CustomExecutableConfigurationWidget::changed()
if (m_ignoreChange)
return;
m_executableChooser->setPath(executable);
- m_commandLineArgumentsLineEdit->setText(Utils::Environment::joinArgumentList(m_runConfiguration->commandLineArguments()));
- m_workingDirectory->setPath(m_runConfiguration->workingDirectory());
+ m_commandLineArgumentsLineEdit->setText(Utils::Environment::joinArgumentList(m_runConfiguration->baseCommandLineArguments()));
+ m_workingDirectory->setPath(m_runConfiguration->baseWorkingDirectory());
m_useTerminalCheck->setChecked(m_runConfiguration->runMode() == LocalApplicationRunConfiguration::Console);
}
@@ -343,7 +343,7 @@ void CustomExecutableRunConfiguration::activeBuildConfigurationChanged()
QString CustomExecutableRunConfiguration::executable() const
{
Utils::Environment env = environment();
- QString exec = env.searchInPath(m_executable, QStringList() << env.expandVariables(workingDirectory()));
+ QString exec = env.searchInPath(m_executable, QStringList() << workingDirectory());
if (exec.isEmpty() || !QFileInfo(exec).exists()) {
// Oh the executable doesn't exists, ask the user.
@@ -396,11 +396,22 @@ LocalApplicationRunConfiguration::RunMode CustomExecutableRunConfiguration::runM
QString CustomExecutableRunConfiguration::workingDirectory() const
{
+ return environment().expandVariables(baseWorkingDirectory());
+}
+
+QString CustomExecutableRunConfiguration::baseWorkingDirectory() const
+{
return m_workingDirectory;
}
+
QStringList CustomExecutableRunConfiguration::commandLineArguments() const
{
+ return environment().expandVariables(baseCommandLineArguments());
+}
+
+QStringList CustomExecutableRunConfiguration::baseCommandLineArguments() const
+{
return m_cmdArguments;
}