From ad904fcaa1f2d68d2d304262e7ce3dd1dd16f31b Mon Sep 17 00:00:00 2001 From: HinGwenWoong Date: Sun, 20 Feb 2022 16:46:15 +0800 Subject: [PATCH] Delete useless code --- PPOCRLabel/PPOCRLabel.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 0b142089..15f62c56 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -174,10 +174,9 @@ class MainWindow(QMainWindow): if self.kie_mode: # self.keyList = QListWidget() self.keyList = UniqueLabelQListWidget() - self.keyList.itemSelectionChanged.connect(self.keyListSelectionChanged) - self.keyList.itemDoubleClicked.connect(self.editBox) - # Connect to itemChanged to detect checkbox changes. - self.keyList.itemChanged.connect(self.keyListItemChanged) + # self.keyList.itemSelectionChanged.connect(self.keyListSelectionChanged) + # self.keyList.itemDoubleClicked.connect(self.editBox) + # self.keyList.itemChanged.connect(self.keyListItemChanged) self.keyListDockName = getStr('keyListTitle') self.keyListDock = QDockWidget(self.keyListDockName, self) self.keyListDock.setWidget(self.keyList) @@ -1136,12 +1135,6 @@ class MainWindow(QMainWindow): else: self.canvas.deSelectShape() - def keyListSelectionChanged(self): - pass - - def keyListItemChanged(self): - pass - def boxSelectionChanged(self): if self._noSelectionSlot: # self.BoxList.scrollToItem(self.currentBox(), QAbstractItemView.PositionAtCenter) -- GitLab