MCPcopy Index your code
hub / github.com/pyload/pyload / data

Method data

module/gui/Overview.py:106–109  ·  view source on GitHub ↗
(self, index, role=Qt.DisplayRole)

Source from the content-addressed store, hash-verified

104 return len(self.packages)
105
106 def data(self, index, role=Qt.DisplayRole):
107 if role in [OverviewModel.PackageName, OverviewModel.Progress, OverviewModel.PartsFinished, OverviewModel.Parts, OverviewModel.ETA, OverviewModel.Speed, OverviewModel.CurrentSize, OverviewModel.MaxSize, OverviewModel.Status]:
108 return QVariant(self.packages[index.row()][role])
109 return QVariant()
110
111class OverviewView(QListView):
112 def __init__(self, connector):

Callers 1

paintMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected