eric6/WebBrowser/Feeds/FeedsManager.py

changeset 7533
88261c96484b
parent 7360
9190402e4505
child 7759
51aa6c6b66f7
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
95 if feed[0] == urlString: 95 if feed[0] == urlString:
96 return False 96 return False
97 97
98 # step 2: add the feed 98 # step 2: add the feed
99 if icon.isNull(): 99 if icon.isNull():
100 icon = UI.PixmapCache.getIcon("rss16.png") 100 icon = UI.PixmapCache.getIcon("rss16")
101 feed = (urlString, title, icon) 101 feed = (urlString, title, icon)
102 self.__feeds.append(feed) 102 self.__feeds.append(feed)
103 self.__addFeedItem(feed) 103 self.__addFeedItem(feed)
104 self.__save() 104 self.__save()
105 105
300 elif xml.isEndElement(): 300 elif xml.isEndElement():
301 if xml.name() in ["item", "entry"]: 301 if xml.name() in ["item", "entry"]:
302 itm = QTreeWidgetItem(topItem) 302 itm = QTreeWidgetItem(topItem)
303 itm.setText(0, titleString) 303 itm.setText(0, titleString)
304 itm.setData(0, FeedsManager.UrlStringRole, linkString) 304 itm.setData(0, FeedsManager.UrlStringRole, linkString)
305 itm.setIcon(0, UI.PixmapCache.getIcon("rss16.png")) 305 itm.setIcon(0, UI.PixmapCache.getIcon("rss16"))
306 306
307 linkString = "" 307 linkString = ""
308 titleString = "" 308 titleString = ""
309 elif xml.isCharacters() and not xml.isWhitespace(): 309 elif xml.isCharacters() and not xml.isWhitespace():
310 if currentTag == "title": 310 if currentTag == "title":

eric ide

mercurial