Search bar improvements

New button and key sequence (ESC) to close the search bar.

Clear selection (by not avoiding the search) when the text to search is
deleted, as expected by @pamtbaau at #1220.
This commit is contained in:
mgr
2017-11-17 22:56:15 +01:00
parent 23155a72d4
commit e242fc84ee
4 changed files with 57 additions and 30 deletions

View File

@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>552</width>
<width>579</width>
<height>482</height>
</rect>
</property>
@@ -77,17 +77,11 @@
</property>
</widget>
</item>
<item row="0" column="6">
<item row="0" column="8">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="4">
@@ -156,6 +150,29 @@
</property>
</widget>
</item>
<item row="0" column="6">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="9">
<widget class="QToolButton" name="hideFindButton">
<property name="text">
<string notr="true">...</string>
</property>
<property name="icon">
<iconset theme="dialog-close"/>
</property>
</widget>
</item>
</layout>
</widget>
</item>