DebuggerDialogs: Remember debugger path history

Change-Id: I02e6b7ff5e2280cabb0f23de942941756f7bf3a0
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
hjk
2013-10-28 18:19:38 +01:00
committed by Tobias Hunger
parent e5dc99da32
commit eaf99819ea
2 changed files with 3 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ StartApplicationDialog::StartApplicationDialog(QWidget *parent)
d->localExecutablePathChooser = new PathChooser(this); d->localExecutablePathChooser = new PathChooser(this);
d->localExecutablePathChooser->setExpectedKind(PathChooser::File); d->localExecutablePathChooser->setExpectedKind(PathChooser::File);
d->localExecutablePathChooser->setPromptDialogTitle(tr("Select Executable")); d->localExecutablePathChooser->setPromptDialogTitle(tr("Select Executable"));
d->localExecutablePathChooser->lineEdit()->setHistoryCompleter(QLatin1String("LocalExecutable")); d->localExecutablePathChooser->setHistoryCompleter(QLatin1String("LocalExecutable"));
d->arguments = new FancyLineEdit(this); d->arguments = new FancyLineEdit(this);
d->arguments->setHistoryCompleter(QLatin1String("CommandlineArguments")); d->arguments->setHistoryCompleter(QLatin1String("CommandlineArguments"));
@@ -256,7 +256,7 @@ StartApplicationDialog::StartApplicationDialog(QWidget *parent)
d->workingDirectory = new PathChooser(this); d->workingDirectory = new PathChooser(this);
d->workingDirectory->setExpectedKind(PathChooser::ExistingDirectory); d->workingDirectory->setExpectedKind(PathChooser::ExistingDirectory);
d->workingDirectory->setPromptDialogTitle(tr("Select Working Directory")); d->workingDirectory->setPromptDialogTitle(tr("Select Working Directory"));
d->workingDirectory->lineEdit()->setHistoryCompleter(QLatin1String("WorkingDirectory")); d->workingDirectory->setHistoryCompleter(QLatin1String("WorkingDirectory"));
d->runInTerminalCheckBox = new QCheckBox(this); d->runInTerminalCheckBox = new QCheckBox(this);

View File

@@ -85,6 +85,7 @@ DebuggerItemConfigWidget::DebuggerItemConfigWidget(DebuggerItemModel *model) :
m_binaryChooser = new PathChooser(this); m_binaryChooser = new PathChooser(this);
m_binaryChooser->setExpectedKind(PathChooser::ExistingCommand); m_binaryChooser->setExpectedKind(PathChooser::ExistingCommand);
m_binaryChooser->setMinimumWidth(400); m_binaryChooser->setMinimumWidth(400);
m_binaryChooser->setHistoryCompleter(QLatin1String("DebuggerPaths"));
m_cdbLabel = new QLabel(this); m_cdbLabel = new QLabel(this);
m_cdbLabel->setTextInteractionFlags(Qt::TextBrowserInteraction); m_cdbLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);