Skip to content

Commit

Permalink
[Feature] Add ability to delete label items based on checkbox selecti…
Browse files Browse the repository at this point in the history
…on (#311)
  • Loading branch information
CVHub520 committed Jun 30, 2024
1 parent 8f5d0e6 commit 6020b85
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ def update_item_color(self, label, color, opacity=255):
)
qlabel.setStyleSheet(style_sheet)
break

def remove_items_by_label(self, label):
items = self.find_items_by_label(label)
for item in items:
row = self.row(item)
self.takeItem(row)

0 comments on commit 6020b85

Please sign in to comment.