Skip to content

Fixed broken context search and hide empty categories from filter.#360

Merged
paceholder merged 1 commit intopaceholder:masterfrom
rayment:master
Jan 9, 2023
Merged

Fixed broken context search and hide empty categories from filter.#360
paceholder merged 1 commit intopaceholder:masterfrom
rayment:master

Conversation

@rayment
Copy link
Contributor

@rayment rayment commented Jan 9, 2023

Searching through the context menu was broken after 883e8a0 due to a mis-comparison on node data that is never inserted, returning no results. This has been fixed by correctly comparing against QTreeWidgetItem::text.

Furthermore, the filtering system has been changed to hide empty categories, showing only those that are relevant (contain matching nodes).

New filter demonstration

Tested on Gentoo Linux, kernel 6.1.0, Qt 5.15.7

Searching through the context menu was broken after 883e8a0 due to a
mis-comparison on node data that is never inserted. This has been fixed
by correctly comparing QTreeWidgetItem::text.

Furthermore, the filtering system has been changed to hide empty
categories, showing only those that are relevant (contain matching
nodes).

Signed-off-by: Finn Rayment <finn@rayment.fr>
@rayment
Copy link
Contributor Author

rayment commented Jan 9, 2023

Tested also on Windows Server 2022 10.0.20348 Build 20348, Qt 5.15.2.

Fixed filtering on Windows

@paceholder paceholder merged commit b4f51e1 into paceholder:master Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments