forked from qt-creator/qt-creator
QmlDesigner: Hide the filter widget for import in the ItemLibraryWidget
Change-Id: I3a7120793d3a6a34b45a22dbb25cf6a5381580e8 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -287,6 +287,11 @@ void ItemLibraryWidget::emitImportChecked()
|
|||||||
|
|
||||||
void ItemLibraryWidget::setCurrentIndexOfStackedWidget(int index)
|
void ItemLibraryWidget::setCurrentIndexOfStackedWidget(int index)
|
||||||
{
|
{
|
||||||
|
if (index == 2)
|
||||||
|
m_filterLineEdit->setVisible(false);
|
||||||
|
else
|
||||||
|
m_filterLineEdit->setVisible(true);
|
||||||
|
|
||||||
m_stackedWidget->setCurrentIndex(index);
|
m_stackedWidget->setCurrentIndex(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user