WebBrowser/WebBrowserView.py

changeset 5797
8bc870b7a8a6
parent 5793
4ff73b969ab1
child 5825
9487c08b6a23
child 5829
d3448873ced3
equal deleted inserted replaced
5796:d3a184427b8e 5797:8bc870b7a8a6
1915 """ 1915 """
1916 Private slot to perform actions when the view is shown and the event 1916 Private slot to perform actions when the view is shown and the event
1917 loop is running. 1917 loop is running.
1918 """ 1918 """
1919 if self.__restoreData: 1919 if self.__restoreData:
1920 sessionData, self.__restoreData = self.__restoreData, None 1920 sessionData, self.__restoreData = self.__restoreData, None
1921 self.loadFromSessionData(sessionData) 1921 self.loadFromSessionData(sessionData)
1922 1922
1923 def showEvent(self, evt): 1923 def showEvent(self, evt):
1924 """ 1924 """
1925 Protected method to handle show events. 1925 Protected method to handle show events.
1930 super(WebBrowserView, self).showEvent(evt) 1930 super(WebBrowserView, self).showEvent(evt)
1931 self.activateSession() 1931 self.activateSession()
1932 1932
1933 def activateSession(self): 1933 def activateSession(self):
1934 """ 1934 """
1935 Private slot to activate a restored session. 1935 Public slot to activate a restored session.
1936 """ 1936 """
1937 if self.__restoreData and not self.__mw.isClosing(): 1937 if self.__restoreData and not self.__mw.isClosing():
1938 QTimer.singleShot(0, self.__showEventSlot) 1938 QTimer.singleShot(0, self.__showEventSlot)
1939 1939
1940 def getSessionData(self): 1940 def getSessionData(self):

eric ide

mercurial