diff options
author | Tobias Markmann <tm@ayena.de> | 2016-09-05 15:44:24 (GMT) |
---|---|---|
committer | Kevin Smith <kevin.smith@isode.com> | 2016-09-07 10:47:40 (GMT) |
commit | 615b87497cd8d4eedc386f002931d6d353f53ccd (patch) | |
tree | 2e3b0946e74415149b33973668ba9216d6f61d13 /Swift/QtUI/MUCSearch/QtMUCSearchWindow.ui | |
parent | b54df5d2a50d4dda0e63ac06050d4ed306952dbb (diff) | |
download | swift-615b87497cd8d4eedc386f002931d6d353f53ccd.zip swift-615b87497cd8d4eedc386f002931d6d353f53ccd.tar.bz2 |
Add ability to filter results in "Search Room" dialog
This is implemented with the help of an implementation of
QSortFilterProxyModel which filters room names based on a
user search string.
Test-Information:
Tested on OS X 10.11.6 with Qt 5.5.1. Tested UX with different
MUC services and search strings.
Change-Id: I88085d089493008b2197a4aeb45d8c4d75724b9c
Diffstat (limited to 'Swift/QtUI/MUCSearch/QtMUCSearchWindow.ui')
-rw-r--r-- | Swift/QtUI/MUCSearch/QtMUCSearchWindow.ui | 62 |
1 files changed, 36 insertions, 26 deletions
diff --git a/Swift/QtUI/MUCSearch/QtMUCSearchWindow.ui b/Swift/QtUI/MUCSearch/QtMUCSearchWindow.ui index 49460ab..52714c4 100644 --- a/Swift/QtUI/MUCSearch/QtMUCSearchWindow.ui +++ b/Swift/QtUI/MUCSearch/QtMUCSearchWindow.ui @@ -6,21 +6,14 @@ <rect> <x>0</x> <y>0</y> - <width>523</width> - <height>368</height> + <width>566</width> + <height>264</height> </rect> </property> <property name="windowTitle"> <string>Search Room</string> </property> <layout class="QGridLayout" name="gridLayout"> - <item row="0" column="0"> - <widget class="QLabel" name="label_2"> - <property name="text"> - <string>Service:</string> - </property> - </widget> - </item> <item row="0" column="1"> <widget class="QComboBox" name="service_"> <property name="sizePolicy"> @@ -34,26 +27,14 @@ </property> </widget> </item> - <item row="0" column="3"> - <widget class="QLineEdit" name="filter_"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> + <item row="0" column="0"> + <widget class="QLabel" name="serviceLabel_"> <property name="text"> - <string/> - </property> - <property name="frame"> - <bool>true</bool> + <string>Service:</string> </property> </widget> </item> - <item row="1" column="0" colspan="4"> - <widget class="QTreeView" name="results_"/> - </item> - <item row="2" column="0" colspan="4"> + <item row="2" column="0" colspan="5"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer"> @@ -90,13 +71,42 @@ </item> </layout> </item> + <item row="0" column="4"> + <widget class="QLineEdit" name="filter_"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="frame"> + <bool>true</bool> + </property> + <property name="placeholderText"> + <string/> + </property> + </widget> + </item> <item row="0" column="2"> - <widget class="QToolButton" name="searchButton"> + <widget class="QToolButton" name="searchButton_"> <property name="text"> <string>List rooms</string> </property> </widget> </item> + <item row="1" column="0" colspan="5"> + <widget class="QTreeView" name="results_"/> + </item> + <item row="0" column="3"> + <widget class="QLabel" name="filterLabel_"> + <property name="text"> + <string>Search for</string> + </property> + </widget> + </item> </layout> </widget> <resources/> |