diff options
author | Christian Kandeler <christian.kandeler@nokia.com> | 2011-10-25 14:33:56 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2011-10-25 14:54:04 +0200 |
commit | 1b4cf42c1ca644d7bae54a6dcf56573052359fab (patch) | |
tree | 3e638efa719881f572f995e3d8e28189129dd242 /src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp | |
parent | 9902ed2bc91adfaa0905e4680323d9d6a9c237e2 (diff) | |
download | qt-creator-1b4cf42c1ca644d7bae54a6dcf56573052359fab.tar.gz |
RemoteLinux: Let the user set a working directory.
Change-Id: I316802d6f640e0dda44424134cdfd9f7aa22c528
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp')
-rw-r--r-- | src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp b/src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp index 875a13022d..f0d73a31d4 100644 --- a/src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp +++ b/src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp @@ -84,6 +84,7 @@ public: QLabel disabledIcon; QLabel disabledReason; QLineEdit argsLineEdit; + QLineEdit workingDirLineEdit; QLabel localExecutableLabel; QLabel remoteExecutableLabel; QCheckBox useAlternateCommandBox; @@ -198,6 +199,10 @@ void RemoteLinuxRunConfigurationWidget::addGenericWidgets(QVBoxLayout *mainLayou d->argsLineEdit.setText(d->runConfiguration->arguments()); d->genericWidgetsLayout.addRow(tr("Arguments:"), &d->argsLineEdit); + d->workingDirLineEdit.setPlaceholderText(tr("<default>")); + d->workingDirLineEdit.setText(d->runConfiguration->workingDirectory()); + d->genericWidgetsLayout.addRow(tr("Working directory:"), &d->workingDirLineEdit); + QHBoxLayout * const debugButtonsLayout = new QHBoxLayout; d->debugCppOnlyButton.setText(tr("C++ only")); d->debugQmlOnlyButton.setText(tr("QML only")); @@ -236,6 +241,8 @@ void RemoteLinuxRunConfigurationWidget::addGenericWidgets(QVBoxLayout *mainLayou SLOT(handleUseAlternateCommandChanged())); connect(&d->alternateCommand, SIGNAL(textEdited(QString)), SLOT(handleAlternateCommandChanged())); + connect(&d->workingDirLineEdit, SIGNAL(textEdited(QString)), + SLOT(handleWorkingDirectoryChanged())); handleDeploySpecsChanged(); handleUseAlternateCommandChanged(); } @@ -306,6 +313,11 @@ void RemoteLinuxRunConfigurationWidget::handleAlternateCommandChanged() d->runConfiguration->setAlternateRemoteExecutable(d->alternateCommand.text().trimmed()); } +void RemoteLinuxRunConfigurationWidget::handleWorkingDirectoryChanged() +{ + d->runConfiguration->setWorkingDirectory(d->workingDirLineEdit.text().trimmed()); +} + void RemoteLinuxRunConfigurationWidget::showDeviceConfigurationsDialog(const QString &link) { if (link == QLatin1String("deviceconfig")) { |