mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-08 08:55:37 -05:00
add toggleable button to hide empty map folders
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user