Change the way pqItemViewSearchWidget is applied.
Currently pqPVApplicationCore::startSearch()
has a hard-wired list of search exclusions (pqSpreadsheetViewModel
), but some custom applications need to exclude additional model-views.
Rather than a fixed list of exclusions, we should query each QAbstractItemView
to see if a dynamic property has been added to signal it should be excluded. Then pqSpreadsheetViewModel should set this property in its constructor and custom applications can do this as well. Only QAbstractItemViews without this property will be searched.