Commit 9ab9f9d3 authored by con's avatar con
Browse files

Don't clear the filter widget's focus when clearing it.

Often the reason for clicking the clear button is to type something into
it afterwards.
See also QTCREATORBUG-705
parent d3f53cca
......@@ -185,7 +185,6 @@ ItemLibrary::ItemLibrary(QWidget *parent) :
lineEditLayout->addWidget(m_d->m_lineEdit, 1, 1, 1, 1);
lineEditLayout->addItem(new QSpacerItem(5, 5, QSizePolicy::Fixed, QSizePolicy::Fixed), 1, 2);
connect(m_d->m_lineEdit, SIGNAL(filterChanged(QString)), this, SLOT(setSearchFilter(QString)));
connect(m_d->m_lineEdit, SIGNAL(buttonClicked()), this, SLOT(clearLineEditFocus()));
m_d->m_stackedWidget = new QStackedWidget(this);
m_d->m_stackedWidget->addWidget(m_d->m_itemsView);
......@@ -286,11 +285,6 @@ void ItemLibrary::updateSearch()
setSearchFilter(m_d->m_lineEdit->text());
}
void ItemLibrary::clearLineEditFocus()
{
m_d->m_lineEdit->clearFocus();
}
void ItemLibrary::setResourcePath(const QString &resourcePath)
{
if (m_d->m_resourcesView->model() == m_d->m_resourcesDirModel)
......
......@@ -54,7 +54,6 @@ public Q_SLOTS:
void setSearchFilter(const QString &searchFilter);
void updateModel();
void updateSearch();
void clearLineEditFocus();
void setResourcePath(const QString &resourcePath);
......
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