333 itm = QTreeWidgetItem(topItem) |
333 itm = QTreeWidgetItem(topItem) |
334 itm.setText(0, titleString) |
334 itm.setText(0, titleString) |
335 itm.setData(0, FeedsManager.UrlStringRole, linkString) |
335 itm.setData(0, FeedsManager.UrlStringRole, linkString) |
336 topItem.setExpanded(True) |
336 topItem.setExpanded(True) |
337 |
337 |
338 def __customContextMenuRequested(self, pos): # noqa: U100 |
338 def __customContextMenuRequested(self, _pos): |
339 """ |
339 """ |
340 Private slot to handle the context menu request for the feeds tree. |
340 Private slot to handle the context menu request for the feeds tree. |
341 |
341 |
342 @param pos position the context menu was requested |
342 @param _pos position the context menu was requested (unused) |
343 @type QPoint |
343 @type QPoint |
344 """ |
344 """ |
345 itm = self.feedsTree.currentItem() |
345 itm = self.feedsTree.currentItem() |
346 if itm is None: |
346 if itm is None: |
347 return |
347 return |