Skip to content
Snippets Groups Projects
Commit 68a28781 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Autotools: Add history completer to path choosers


Change-Id: I8de6f4b93fea29165e9c553165991734fcde6ed6
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 3e1ae6bf
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,7 @@ AutotoolsBuildSettingsWidget::AutotoolsBuildSettingsWidget(AutotoolsBuildConfigu
m_pathChooser->setExpectedKind(Utils::PathChooser::Directory);
m_pathChooser->setBaseDirectory(bc->target()->project()->projectDirectory());
m_pathChooser->setEnvironment(bc->environment());
m_pathChooser->setHistoryCompleter(QLatin1String("AutoTools.BuildDir.History"));
fl->addRow(tr("Build directory:"), m_pathChooser);
connect(m_pathChooser, SIGNAL(changed(QString)), this, SLOT(buildDirectoryChanged()));
......
......@@ -97,6 +97,7 @@ BuildPathPage::BuildPathPage(AutotoolsOpenProjectWizard *wizard)
"with different settings."));
fl->addWidget(label);
m_pc = new Utils::PathChooser(this);
m_pc->setHistoryCompleter(QLatin1String("AutoTools.BuildDir.History"));
m_pc->setBaseDirectory(m_wizard->sourceDirectory());
m_pc->setPath(m_wizard->buildDirectory());
connect(m_pc, SIGNAL(changed(QString)), this, SLOT(buildDirectoryChanged()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment