mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
More PyQt6 nonsense
This commit is contained in:
parent
d691d0a69a
commit
32cbd1ee4b
@ -752,7 +752,7 @@ class Format(QListWidgetItem):
|
||||
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…
x
Reference in New Issue
Block a user