From ca3a925ae4f36a02be5d5f3d870e319fd7e6afa9 Mon Sep 17 00:00:00 2001 From: Leif <4603009@qq.com> Date: Fri, 8 Jan 2021 14:49:44 +0800 Subject: [PATCH] Temporarily delete editinlist --- PPOCRLabel/libs/editinlist.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 PPOCRLabel/libs/editinlist.py diff --git a/PPOCRLabel/libs/editinlist.py b/PPOCRLabel/libs/editinlist.py deleted file mode 100644 index f01f513c..00000000 --- a/PPOCRLabel/libs/editinlist.py +++ /dev/null @@ -1,29 +0,0 @@ -import sys -from PyQt5 import QtWidgets -from PyQt5.QtGui import * -from PyQt5.QtCore import * -from PyQt5.QtWidgets import * - -class EditInList(QListWidget): - def __init__(self): - super(EditInList,self).__init__() - # click to edit - self.clicked.connect(self.item_clicked) - - def item_clicked(self, modelindex: QModelIndex) -> None: - self.edited_item = self.currentItem() - self.closePersistentEditor(self.edited_item) - item = self.item(modelindex.row()) - self.edited_item = item - self.openPersistentEditor(item) - self.editItem(item) - - def mouseDoubleClickEvent(self, event): - # close edit - for i in range(self.count()): - self.closePersistentEditor(self.item(i)) - - def leaveEvent(self, event): - # close edit - for i in range(self.count()): - self.closePersistentEditor(self.item(i)) \ No newline at end of file -- GitLab