Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add bulk mark and unmark feature? #3

Open
maskelihileci opened this issue Jun 17, 2021 · 1 comment
Open

Can you add bulk mark and unmark feature? #3

maskelihileci opened this issue Jun 17, 2021 · 1 comment

Comments

@maskelihileci
Copy link

As I mentioned in the topic title, I don't want to dump all the functions.

@giladreich
Copy link
Owner

Hey and thanks for the suggestion.

Have a look here: https://gist.github.com/StephenNneji/14bfc4e7a322ec89df7d30847fbf19b3

Happy to receive a PR for that. If it gets complicated, you can also add a simple button below that changes its text based on the item's status in the table. Also see comment here:

# TODO(Gilad): Convert this to use Qt Model/View architecture (QAbstractItemView)
def filter_items(self):
filter = self.filter_text.lower()
rowCount = self.tblFunctions.rowCount()
colCount = self.tblFunctions.columnCount()
for row in range(rowCount):
match = False
for col in range(1, colCount):
item = self.tblFunctions.item(row, col)
if item.text().lower().find(filter) != -1:
match = True
break
self.tblFunctions.setRowHidden(row, not match)

I might have time to look at it in one of the next weekends.

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

No branches or pull requests

2 participants