提交 ad904fca 编写于 作者: HinGwenWoong's avatar HinGwenWoong

Delete useless code

上级 3cc1b548
...@@ -174,10 +174,9 @@ class MainWindow(QMainWindow): ...@@ -174,10 +174,9 @@ class MainWindow(QMainWindow):
if self.kie_mode: if self.kie_mode:
# self.keyList = QListWidget() # self.keyList = QListWidget()
self.keyList = UniqueLabelQListWidget() self.keyList = UniqueLabelQListWidget()
self.keyList.itemSelectionChanged.connect(self.keyListSelectionChanged) # self.keyList.itemSelectionChanged.connect(self.keyListSelectionChanged)
self.keyList.itemDoubleClicked.connect(self.editBox) # self.keyList.itemDoubleClicked.connect(self.editBox)
# Connect to itemChanged to detect checkbox changes. # self.keyList.itemChanged.connect(self.keyListItemChanged)
self.keyList.itemChanged.connect(self.keyListItemChanged)
self.keyListDockName = getStr('keyListTitle') self.keyListDockName = getStr('keyListTitle')
self.keyListDock = QDockWidget(self.keyListDockName, self) self.keyListDock = QDockWidget(self.keyListDockName, self)
self.keyListDock.setWidget(self.keyList) self.keyListDock.setWidget(self.keyList)
...@@ -1136,12 +1135,6 @@ class MainWindow(QMainWindow): ...@@ -1136,12 +1135,6 @@ class MainWindow(QMainWindow):
else: else:
self.canvas.deSelectShape() self.canvas.deSelectShape()
def keyListSelectionChanged(self):
pass
def keyListItemChanged(self):
pass
def boxSelectionChanged(self): def boxSelectionChanged(self):
if self._noSelectionSlot: if self._noSelectionSlot:
# self.BoxList.scrollToItem(self.currentBox(), QAbstractItemView.PositionAtCenter) # self.BoxList.scrollToItem(self.currentBox(), QAbstractItemView.PositionAtCenter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册