404 stream << self.history() |
404 stream << self.history() |
405 sessionData["History"] = str( |
405 sessionData["History"] = str( |
406 historyArray.toBase64(QByteArray.Base64UrlEncoding), |
406 historyArray.toBase64(QByteArray.Base64UrlEncoding), |
407 encoding="ascii") |
407 encoding="ascii") |
408 sessionData["HistoryIndex"] = self.history().currentItemIndex() |
408 sessionData["HistoryIndex"] = self.history().currentItemIndex() |
|
409 |
|
410 # 4. current URL |
|
411 sessionData["Url"] = self.url().toString( |
|
412 QUrl.PrettyDecoded | QUrl.RemovePassword) |
409 |
413 |
410 return sessionData |
414 return sessionData |
411 |
415 |
412 def loadFromSessionData(self, sessionData): |
416 def loadFromSessionData(self, sessionData): |
413 """ |
417 """ |