QmlDesigner: Remove an external dependency from the SearchBox

Task-number: QDS-7784
Change-Id: Ibd1390398d9984c618da4052560706ac58fb5234
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2022-09-26 15:21:33 +03:00
parent 945e6fce31
commit 57dc7f8468
4 changed files with 9 additions and 1 deletions

View File

@@ -440,6 +440,8 @@ Item {
id: searchBox
width: parent.width - addAssetButton.width - 5
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
}
IconButton {

View File

@@ -225,6 +225,8 @@ Item {
id: searchBox
width: parent.width - addModuleButton.width - 5
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
}
IconButton {

View File

@@ -234,6 +234,8 @@ Item {
id: searchBox
width: root.width - addMaterialButton.width
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
}
IconButton {

View File

@@ -33,6 +33,8 @@ Item {
property alias text: searchFilterText.text
signal searchChanged(string searchText);
function clear()
{
searchFilterText.text = "";
@@ -80,7 +82,7 @@ Item {
selectByMouse: true
hoverEnabled: true
onTextChanged: rootView.handleSearchfilterChanged(text)
onTextChanged: root.searchChanged(text)
Label {
text: StudioTheme.Constants.search