eric6/WebBrowser/WebBrowserView.py

changeset 8235
78e6d29eb773
parent 8227
349308e84eeb
child 8243
cc717c2ae956
equal deleted inserted replaced
8234:fcb6b4b96274 8235:78e6d29eb773
2238 generated by getSessionData() 2238 generated by getSessionData()
2239 @type dict 2239 @type dict
2240 @return tuple containing the title, URL and web icon 2240 @return tuple containing the title, URL and web icon
2241 @rtype tuple of (str, str, QIcon) 2241 @rtype tuple of (str, str, QIcon)
2242 """ 2242 """
2243 if "Title" in sessionData: 2243 title = sessionData.get("Title", "")
2244 title = sessionData["Title"] 2244 urlStr = sessionData.get("Url", "")
2245 else:
2246 title = ""
2247
2248 if "Url" in sessionData:
2249 urlStr = sessionData["Url"]
2250 else:
2251 urlStr = ""
2252 2245
2253 if "Icon" in sessionData: 2246 if "Icon" in sessionData:
2254 iconArray = QByteArray.fromBase64( 2247 iconArray = QByteArray.fromBase64(
2255 sessionData["Icon"].encode("ascii")) 2248 sessionData["Icon"].encode("ascii"))
2256 stream = QDataStream(iconArray, QIODevice.OpenModeFlag.ReadOnly) 2249 stream = QDataStream(iconArray, QIODevice.OpenModeFlag.ReadOnly)

eric ide

mercurial