QmlDesigner: Clear components view search box upon load

i.e. upon changing from edit mode to QDS mode. This also removed a
warning.

Change-Id: Ibd3ee3bd30febfcee9a05cb87047e79b8ed1bf61
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2022-05-23 20:32:43 +03:00
parent d66b65b74b
commit cb93846367
4 changed files with 9 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ Item {
function clearSearchFilter()
{
searchBox.text = "";
searchBox.clear();
}
function updateDropExtFiles(drag)

View File

@@ -91,6 +91,12 @@ Item {
itemContextMenu.close()
}
// Called from C++
function clearSearchFilter()
{
searchBox.clear();
}
// Called also from C++
function switchToComponentsView()
{

View File

@@ -56,7 +56,7 @@ Item {
// Called from C++
function clearSearchFilter()
{
searchBox.clearSearchFilter();
searchBox.clear();
}
MouseArea {

View File

@@ -33,7 +33,7 @@ Item {
property alias text: searchFilterText.text
function clearSearchFilter()
function clear()
{
searchFilterText.text = "";
}