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:
Marco Bubke
2013-08-15 13:10:37 +02:00
parent 04d7ece089
commit aa4e4e382b

View File

@@ -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);
} }