add toggleable button to hide empty map folders

This commit is contained in:
garak
2024-01-09 21:50:22 -05:00
parent c0f32c6a17
commit cd5b1f98d2
8 changed files with 113 additions and 1 deletions

View File

@@ -9,9 +9,11 @@ class FilterChildrenProxyModel : public QSortFilterProxyModel
public:
explicit FilterChildrenProxyModel(QObject *parent = nullptr);
void toggleHideEmpty() { this->hideEmpty = !this->hideEmpty; }
protected:
bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const;
private:
bool hideEmpty = false;
};
#endif // FILTERCHILDRENPROXYMODEL_H