Live update progress in table

This commit is contained in:
BasioMeusPuga
2017-11-29 03:38:06 +05:30
parent c72eff22c7
commit 46e6991bc1
3 changed files with 26 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ class LibraryTableModel(QtCore.QAbstractTableModel):
return return_pixmap
if role == QtCore.Qt.DisplayRole:
elif role == QtCore.Qt.DisplayRole:
value = self.display_data[index.row()][index.column()]
return value
@@ -66,6 +66,11 @@ class LibraryTableModel(QtCore.QAbstractTableModel):
# The rest of the roles can be accomodated here.
value = self.display_data[index.row()][5]
return value
elif role == QtCore.Qt.UserRole + 1:
value = self.display_data[index.row()][6]
return value
else:
return QtCore.QVariant()