forked from qt-creator/qt-creator
Cmake: Add history completer to path chooser
Change-Id: Ib747ce4903668799a47011ae7cddfd898aaf722b Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -299,6 +299,7 @@ QWidget *CMakeSettingsPage::widget()
|
||||
formLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
|
||||
m_pathchooser = new Utils::PathChooser;
|
||||
m_pathchooser->setExpectedKind(Utils::PathChooser::ExistingCommand);
|
||||
m_pathchooser->setHistoryCompleter(QLatin1String("Cmake.Command.History"));
|
||||
formLayout->addRow(tr("Executable:"), m_pathchooser);
|
||||
formLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding));
|
||||
|
||||
|
Reference in New Issue
Block a user