forked from qt-creator/qt-creator
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:
@@ -48,7 +48,7 @@ Item {
|
|||||||
|
|
||||||
function clearSearchFilter()
|
function clearSearchFilter()
|
||||||
{
|
{
|
||||||
searchBox.text = "";
|
searchBox.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDropExtFiles(drag)
|
function updateDropExtFiles(drag)
|
||||||
|
@@ -91,6 +91,12 @@ Item {
|
|||||||
itemContextMenu.close()
|
itemContextMenu.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Called from C++
|
||||||
|
function clearSearchFilter()
|
||||||
|
{
|
||||||
|
searchBox.clear();
|
||||||
|
}
|
||||||
|
|
||||||
// Called also from C++
|
// Called also from C++
|
||||||
function switchToComponentsView()
|
function switchToComponentsView()
|
||||||
{
|
{
|
||||||
|
@@ -56,7 +56,7 @@ Item {
|
|||||||
// Called from C++
|
// Called from C++
|
||||||
function clearSearchFilter()
|
function clearSearchFilter()
|
||||||
{
|
{
|
||||||
searchBox.clearSearchFilter();
|
searchBox.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
@@ -33,7 +33,7 @@ Item {
|
|||||||
|
|
||||||
property alias text: searchFilterText.text
|
property alias text: searchFilterText.text
|
||||||
|
|
||||||
function clearSearchFilter()
|
function clear()
|
||||||
{
|
{
|
||||||
searchFilterText.text = "";
|
searchFilterText.text = "";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user