diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2013-11-25 14:32:41 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-02-10 10:25:44 +0100 |
commit | 5559e64c7e473d698a5039130e79868bbef3a5c8 (patch) | |
tree | b5899f8f433bbfdf29f601dc826b9f7b0c1576a4 /src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp | |
parent | 68a28781e15c09f1534e147b634dc85f0ce14e5c (diff) | |
download | qt-creator-5559e64c7e473d698a5039130e79868bbef3a5c8.tar.gz |
Cmake: Add history completer to path chooser
Change-Id: Ib747ce4903668799a47011ae7cddfd898aaf722b
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp b/src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp index c5804b56e6..2d9e417d58 100644 --- a/src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp @@ -466,6 +466,7 @@ ShadowBuildPage::ShadowBuildPage(CMakeOpenProjectWizard *cmakeWizard, bool chang m_pc->setBaseDirectory(m_cmakeWizard->sourceDirectory()); m_pc->setPath(m_cmakeWizard->buildDirectory()); m_pc->setExpectedKind(Utils::PathChooser::Directory); + m_pc->setHistoryCompleter(QLatin1String("Cmake.BuildDir.History")); connect(m_pc, SIGNAL(changed(QString)), this, SLOT(buildDirectoryChanged())); fl->addRow(tr("Build directory:"), m_pc); setTitle(tr("Build Location")); @@ -489,6 +490,7 @@ ChooseCMakePage::ChooseCMakePage(CMakeOpenProjectWizard *cmakeWizard) // Show a field for the user to enter m_cmakeExecutable = new Utils::PathChooser(this); m_cmakeExecutable->setExpectedKind(Utils::PathChooser::ExistingCommand); + m_cmakeExecutable->setHistoryCompleter(QLatin1String("Cmake.Command.History")); fl->addRow(tr("CMake Executable:"), m_cmakeExecutable); connect(m_cmakeExecutable, SIGNAL(editingFinished()), |