forked from qt-creator/qt-creator
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:
@@ -440,6 +440,8 @@ Item {
|
||||
id: searchBox
|
||||
|
||||
width: parent.width - addAssetButton.width - 5
|
||||
|
||||
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
|
||||
}
|
||||
|
||||
IconButton {
|
||||
|
@@ -225,6 +225,8 @@ Item {
|
||||
id: searchBox
|
||||
|
||||
width: parent.width - addModuleButton.width - 5
|
||||
|
||||
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
|
||||
}
|
||||
|
||||
IconButton {
|
||||
|
@@ -234,6 +234,8 @@ Item {
|
||||
id: searchBox
|
||||
|
||||
width: root.width - addMaterialButton.width
|
||||
|
||||
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
|
||||
}
|
||||
|
||||
IconButton {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user