src/eric7/WebBrowser/Feeds/FeedsManager.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10436
f6881d10e995
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
327 itm = QTreeWidgetItem(topItem) 327 itm = QTreeWidgetItem(topItem)
328 itm.setText(0, titleString) 328 itm.setText(0, titleString)
329 itm.setData(0, FeedsManager.UrlStringRole, linkString) 329 itm.setData(0, FeedsManager.UrlStringRole, linkString)
330 topItem.setExpanded(True) 330 topItem.setExpanded(True)
331 331
332 def __customContextMenuRequested(self, pos): 332 def __customContextMenuRequested(self, pos): # noqa: U100
333 """ 333 """
334 Private slot to handle the context menu request for the feeds tree. 334 Private slot to handle the context menu request for the feeds tree.
335 335
336 @param pos position the context menu was requested (QPoint) 336 @param pos position the context menu was requested (QPoint)
337 """ 337 """
366 if errorString: 366 if errorString:
367 menu = QMenu() 367 menu = QMenu()
368 menu.addAction(self.tr("&Show error data"), self.__showError) 368 menu.addAction(self.tr("&Show error data"), self.__showError)
369 menu.exec(QCursor.pos()) 369 menu.exec(QCursor.pos())
370 370
371 @pyqtSlot(QTreeWidgetItem, int)
371 def __itemActivated(self, itm, column): 372 def __itemActivated(self, itm, column):
372 """ 373 """
373 Private slot to handle the activation of an item. 374 Private slot to handle the activation of an item.
374 375
375 @param itm reference to the activated item (QTreeWidgetItem) 376 @param itm reference to the activated item (QTreeWidgetItem)

eric ide

mercurial