mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 11:43:52 +02:00
More PyQt6 nonsense
This commit is contained in:
parent
db382986c1
commit
ba9b6971b2
1 changed files with 1 additions and 1 deletions
|
|
@ -752,7 +752,7 @@ def __init__(self, parent, ext, size, path=None, timestamp=None):
|
|||
self.size = float(size)/(1024*1024)
|
||||
text = '%s (%.2f MB)'%(self.ext.upper(), self.size)
|
||||
QListWidgetItem.__init__(self, file_icon_provider().icon_from_ext(ext),
|
||||
text, parent, QListWidgetItem.ItemType.UserType)
|
||||
text, parent, QListWidgetItem.ItemType.UserType.value)
|
||||
if timestamp is not None:
|
||||
ts = timestamp.astimezone(local_tz)
|
||||
t = strftime('%a, %d %b %Y [%H:%M:%S]', ts.timetuple())
|
||||
|
|
|
|||
Loading…
Reference in a new issue