rewrite of the filter code to fix [LYN-4156][LYN-4545] (#1640)
* rewrite of the filter code to fix [LYN-4156][LYN-4545] Signed-off-by: Alex Montgomery <alexmont@amazon.com> * improved onRowCountChanged() per comments Signed-off-by: Alex Montgomery <alexmont@amazon.com>
This commit is contained in:
@@ -42,8 +42,8 @@ namespace AzQtComponents
|
||||
OutlinerSearchTypeSelector(QWidget* parent = nullptr);
|
||||
|
||||
protected:
|
||||
// can be used to override the logic when adding items in RepopulateDataModel
|
||||
bool filterItemOut(int unfilteredDataIndex, bool itemMatchesFilter, bool categoryMatchesFilter) override;
|
||||
// override the logic of accepting filter categories
|
||||
bool filterItemOut(const QModelIndex& sourceIndex, bool filteredByBase) override;
|
||||
void initItem(QStandardItem* item, const SearchTypeFilter& filter, int unfilteredDataIndex) override;
|
||||
int GetNumFixedItems() override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user