QmlJsEditor: Add history completer to path choosers

Change-Id: Ibb5df238b2b8155e971e17aa9aa52d486a7da775
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Tobias Hunger
2013-11-25 14:36:37 +01:00
parent 75a3cfce4c
commit 0cb39c6109

View File

@@ -66,6 +66,7 @@ void ComponentNameDialog::go(QString *proposedName,
d.ui->componentNameEdit->setForceFirstCapitalLetter(true);
d.ui->componentNameEdit->setText(*proposedName);
d.ui->pathEdit->setExpectedKind(Utils::PathChooser::ExistingDirectory);
d.ui->pathEdit->setHistoryCompleter(QLatin1String("QmlJs.Component.History"));
d.ui->pathEdit->setPath(*proposedPath);
if (QDialog::Accepted == d.exec()) {