From a07d8cf5ea0179f3e99e73feb4a04533d7940e55 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 10 Feb 2020 22:55:09 +0100 Subject: Filter: implement starts-with and exact modes Currently, we do substring search. Implement starts-with and exact mode (for example when search for "Cave vs. Cavern" tags). For each textual search criterion add a combo-box. Signed-off-by: Berthold Stoeger --- desktop-widgets/filterwidget2.ui | 454 ++++++++++++++++++++++++--------------- 1 file changed, 284 insertions(+), 170 deletions(-) (limited to 'desktop-widgets/filterwidget2.ui') diff --git a/desktop-widgets/filterwidget2.ui b/desktop-widgets/filterwidget2.ui index 44b0dfcfd..c38e651b3 100644 --- a/desktop-widgets/filterwidget2.ui +++ b/desktop-widgets/filterwidget2.ui @@ -35,20 +35,26 @@ - - + + + + + - Reset / close + Tags - - + + + + + - Min + Suit @@ -59,32 +65,22 @@ - - - - Max + + + + Close filters - - - - - - Rating + + + :filter-close:filter-close - - - - - - Tags + + true - - - - - + + Max @@ -97,59 +93,95 @@ - - + + - From + Planned + + + true - - - - To + + + + + + + Qt::Vertical - + + + 20 + 40 + + + - - + + Min - - + + - - + + - Visibility + Rating - - - - Min + + + + + 0 + 0 + + + + Qt::TabFocus - - - - Max + + + + + 0 + 0 + + + + Qt::TabFocus - - - - - + + + + Min + + - - + + + + Reset filters + + + + :edit-clear-icon:edit-clear-icon + + + true + + @@ -158,27 +190,15 @@ - - - - - - - - - - - + + - Water Temp + Visibility - - - - - + + Max @@ -191,10 +211,34 @@ - - + + - Suit + To + + + + + + + Min + + + + + + + Logged + + + true + + + + + + + true @@ -205,6 +249,22 @@ + + + + + + + + + + + + + Max + + + @@ -212,8 +272,8 @@ - - + + 0 @@ -225,19 +285,19 @@ - - - - - 0 - 0 - - - - Qt::TabFocus + + + + + + + Water Temp + + + @@ -251,88 +311,41 @@ - - - - - 0 - 0 - - - - Qt::TabFocus - - + + - - - - Logged - - + + + true - - + + - Planned - - - true - - - - - - - - - - true + Max - - - - true + + + + Reset / close - - - - Close filters - - - - :filter-close:filter-close - - - true - - - - - - - Reset filters - - - - :edit-clear-icon:edit-clear-icon - - - true + + + + From - + @@ -351,7 +364,26 @@ - + + + + + Substring + + + + + Starts with + + + + + Exact + + + + + @@ -370,7 +402,26 @@ - + + + + + Substring + + + + + Starts with + + + + + Exact + + + + + @@ -389,7 +440,26 @@ - + + + + + Substring + + + + + Starts with + + + + + Exact + + + + + @@ -408,7 +478,7 @@ - + @@ -427,7 +497,7 @@ - + @@ -446,18 +516,62 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - + + + + + Substring + + + + + Starts with + + + + + Exact + + + + + + + + + Substring + + + + + Starts with + + + + + Exact + + + + + + + + + Substring + + + + + Starts with + + + + + Exact + + + -- cgit v1.2.3-70-g09d2