Commit 14e645df authored by hjk's avatar hjk

Add history to device process dialog's linedit

Task-number: QTCREATORBUG-10893
Change-Id: I00833ce76b70ab6ed4a6624874caa71b3726e37f
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent 92c73465
......@@ -138,6 +138,7 @@ DeviceProcessesDialogPrivate::DeviceProcessesDialogPrivate(KitChooser *chooser,
processFilterLineEdit = new FilterLineEdit(q);
processFilterLineEdit->setPlaceholderText(DeviceProcessesDialog::tr("Filter"));
processFilterLineEdit->setFocus(Qt::TabFocusReason);
processFilterLineEdit->setHistoryCompleter(QLatin1String("DeviceProcessDialogFilter"));
kitChooser->populate();
......@@ -185,6 +186,8 @@ DeviceProcessesDialogPrivate::DeviceProcessesDialogPrivate(KitChooser *chooser,
// line->setFrameShape(QFrame::HLine);
// line->setFrameShadow(QFrame::Sunken);
proxyModel.setFilterRegExp(processFilterLineEdit->text());
connect(processFilterLineEdit, SIGNAL(textChanged(QString)),
&proxyModel, SLOT(setFilterRegExp(QString)));
connect(procView->selectionModel(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment