eric6/WebBrowser/Feeds/FeedsDialog.py

changeset 7533
88261c96484b
parent 7360
9190402e4505
child 7781
607a6098cb44
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
32 @param parent reference to the parent widget (QWidget) 32 @param parent reference to the parent widget (QWidget)
33 """ 33 """
34 super(FeedsDialog, self).__init__(parent) 34 super(FeedsDialog, self).__init__(parent)
35 self.setupUi(self) 35 self.setupUi(self)
36 36
37 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("rss48.png")) 37 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("rss48"))
38 38
39 self.__browser = browser 39 self.__browser = browser
40 40
41 self.__availableFeeds = availableFeeds[:] 41 self.__availableFeeds = availableFeeds[:]
42 for row in range(len(self.__availableFeeds)): 42 for row in range(len(self.__availableFeeds)):
77 from WebBrowser.WebBrowserWindow import WebBrowserWindow 77 from WebBrowser.WebBrowserWindow import WebBrowserWindow
78 feedsManager = WebBrowserWindow.feedsManager() 78 feedsManager = WebBrowserWindow.feedsManager()
79 if feedsManager.addFeed(urlString, title, self.__browser.icon()): 79 if feedsManager.addFeed(urlString, title, self.__browser.icon()):
80 if WebBrowserWindow.notificationsEnabled(): 80 if WebBrowserWindow.notificationsEnabled():
81 WebBrowserWindow.showNotification( 81 WebBrowserWindow.showNotification(
82 UI.PixmapCache.getPixmap("rss48.png"), 82 UI.PixmapCache.getPixmap("rss48"),
83 self.tr("Add RSS Feed"), 83 self.tr("Add RSS Feed"),
84 self.tr("""The feed was added successfully.""")) 84 self.tr("""The feed was added successfully."""))
85 else: 85 else:
86 E5MessageBox.information( 86 E5MessageBox.information(
87 self, 87 self,

eric ide

mercurial