Commit cb5a9d9d authored by Konstantin Tokarev's avatar Konstantin Tokarev Committed by Eike Ziller
Browse files

Use FilterLineEdit in FindToolWindow (to add clear button).



Change-Id: Ib6238471e50a361d52c71d13df39730b17bcea75
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent ef56efd9
......@@ -171,7 +171,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="searchTerm"/>
<widget class="Utils::FilterLineEdit" name="searchTerm"/>
</item>
<item row="3" column="0" colspan="2">
<widget class="QWidget" name="configWidget" native="true">
......@@ -185,6 +185,18 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Utils::FancyLineEdit</class>
<extends>QLineEdit</extends>
<header location="global">utils/fancylineedit.h</header>
</customwidget>
<customwidget>
<class>Utils::FilterLineEdit</class>
<extends>Utils::FancyLineEdit</extends>
<header location="global">utils/filterlineedit.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>filterList</tabstop>
<tabstop>searchTerm</tabstop>
......
......@@ -56,6 +56,7 @@ FindToolWindow::FindToolWindow(FindPlugin *plugin, QWidget *parent)
{
m_instance = this;
m_ui.setupUi(this);
m_ui.searchTerm->setPlaceholderText(QString());
setFocusProxy(m_ui.searchTerm);
connect(m_ui.searchButton, SIGNAL(clicked()), this, SLOT(search()));
......
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