display tick and cross for boolean values
This commit is contained in:
committed by
Thomas Peetz
parent
afb3ac88c8
commit
245ee2378e
@@ -60,11 +60,11 @@ class MediaFileTableModel(QAbstractTableModel):
|
||||
return value.strftime("%Y-%m-%d %M:%M:%S")
|
||||
if isinstance(value, str):
|
||||
return value
|
||||
# if isinstance(value, bytes):
|
||||
# if value == b'\x01':
|
||||
# return self.main_window.tick
|
||||
# else:
|
||||
# return self.main_window.cross
|
||||
if isinstance(value, bytes):
|
||||
if value == b'\x01':
|
||||
return self.main_window.tick
|
||||
else:
|
||||
return self.main_window.cross
|
||||
return value
|
||||
if role == Qt.ItemDataRole.DecorationRole:
|
||||
if isinstance(value, bytes):
|
||||
|
||||
Reference in New Issue
Block a user