File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,15 @@ Page {
110
110
// TODO: Add animations on show/hiding search card
111
111
id: searchCard
112
112
width: Units .dp (300 )
113
- height: Units .dp (60 )
113
+ height: Units .dp (50 )
114
114
anchors .bottom : parent .bottom
115
115
anchors .margins : Units .dp (8 )
116
116
anchors .horizontalCenter : parent .horizontalCenter
117
117
visible: false
118
118
119
119
RowLayout {
120
120
anchors .fill : parent
121
- anchors .margins : Units .dp (16 )
121
+ anchors .margins : Units .dp (8 )
122
122
spacing: Units .dp (16 )
123
123
Icon {
124
124
name: " action/search"
@@ -127,10 +127,8 @@ Page {
127
127
id: searchField
128
128
Layout .fillWidth : true
129
129
placeholderText: qsTr (" Search" )
130
- text: folderModel .model .nameFilters
131
130
onAccepted: {
132
- // TODO: add code to translate user input to regex
133
- folderModel .model .nameFilters = [text]
131
+ folderModel .model .nameFilters = [ " *" + text + " *" ]
134
132
folderModel .model .filterDirectories = true
135
133
}
136
134
Keys .onPressed : {
You can’t perform that action at this time.
0 commit comments