Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
ca3a925a
Commit
ca3a925a
authored
Jan 08, 2021
by
Leif
Browse files
Temporarily delete editinlist
parent
941d1501
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
PPOCRLabel/libs/editinlist.py
PPOCRLabel/libs/editinlist.py
+0
-29
No files found.
PPOCRLabel/libs/editinlist.py
deleted
100644 → 0
View file @
941d1501
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment