summaryrefslogtreecommitdiff
path: root/src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2011-10-25 14:33:56 +0200
committerKai Koehne <kai.koehne@nokia.com>2011-10-25 14:54:04 +0200
commit1b4cf42c1ca644d7bae54a6dcf56573052359fab (patch)
tree3e638efa719881f572f995e3d8e28189129dd242 /src/plugins/remotelinux/remotelinuxrunconfigurationwidget.cpp
parent9902ed2bc91adfaa0905e4680323d9d6a9c237e2 (diff)
downloadqt-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.cpp12
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")) {