E5Network/E5NetworkMonitor.py

changeset 365
0686ac00256e
parent 168
3383117f894b
child 410
e5d1addeb90c
equal deleted inserted replaced
363:8bda0881a970 365:0686ac00256e
293 if status == 302: 293 if status == 302:
294 target = reply.attribute(QNetworkRequest.RedirectionTargetAttribute) or QUrl() 294 target = reply.attribute(QNetworkRequest.RedirectionTargetAttribute) or QUrl()
295 self.requests[offset].info = \ 295 self.requests[offset].info = \
296 self.trUtf8("Redirect: {0}").format(target.toString()) 296 self.trUtf8("Redirect: {0}").format(target.toString())
297 297
298 def headerData(self, section, orientation, role): 298 def headerData(self, section, orientation, role = Qt.DisplayRole):
299 """ 299 """
300 Public method to get header data from the model. 300 Public method to get header data from the model.
301 301
302 @param section section number (integer) 302 @param section section number (integer)
303 @param orientation orientation (Qt.Orientation) 303 @param orientation orientation (Qt.Orientation)
307 if orientation == Qt.Horizontal and role == Qt.DisplayRole: 307 if orientation == Qt.Horizontal and role == Qt.DisplayRole:
308 return self.__headerData[section] 308 return self.__headerData[section]
309 309
310 return QAbstractTableModel.headerData(self, section, orientation, role) 310 return QAbstractTableModel.headerData(self, section, orientation, role)
311 311
312 def data(self, index, role): 312 def data(self, index, role = Qt.DisplayRole):
313 """ 313 """
314 Public method to get data from the model. 314 Public method to get data from the model.
315 315
316 @param index index to get data for (QModelIndex) 316 @param index index to get data for (QModelIndex)
317 @param role role of the data to retrieve (integer) 317 @param role role of the data to retrieve (integer)

eric ide

mercurial