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
|
id: searchBox
|
||||||
|
|
||||||
width: parent.width - addAssetButton.width - 5
|
width: parent.width - addAssetButton.width - 5
|
||||||
|
|
||||||
|
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton {
|
IconButton {
|
||||||
|
@@ -225,6 +225,8 @@ Item {
|
|||||||
id: searchBox
|
id: searchBox
|
||||||
|
|
||||||
width: parent.width - addModuleButton.width - 5
|
width: parent.width - addModuleButton.width - 5
|
||||||
|
|
||||||
|
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton {
|
IconButton {
|
||||||
|
@@ -234,6 +234,8 @@ Item {
|
|||||||
id: searchBox
|
id: searchBox
|
||||||
|
|
||||||
width: root.width - addMaterialButton.width
|
width: root.width - addMaterialButton.width
|
||||||
|
|
||||||
|
onSearchChanged: (searchText) => rootView.handleSearchfilterChanged(searchText)
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton {
|
IconButton {
|
||||||
|
@@ -33,6 +33,8 @@ Item {
|
|||||||
|
|
||||||
property alias text: searchFilterText.text
|
property alias text: searchFilterText.text
|
||||||
|
|
||||||
|
signal searchChanged(string searchText);
|
||||||
|
|
||||||
function clear()
|
function clear()
|
||||||
{
|
{
|
||||||
searchFilterText.text = "";
|
searchFilterText.text = "";
|
||||||
@@ -80,7 +82,7 @@ Item {
|
|||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
onTextChanged: rootView.handleSearchfilterChanged(text)
|
onTextChanged: root.searchChanged(text)
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: StudioTheme.Constants.search
|
text: StudioTheme.Constants.search
|
||||||
|
Reference in New Issue
Block a user