2051 """ |
2051 """ |
2052 self.historyManager().updateHistoryEntry( |
2052 self.historyManager().updateHistoryEntry( |
2053 browser.url().toString(), title) |
2053 browser.url().toString(), title) |
2054 |
2054 |
2055 @pyqtSlot() |
2055 @pyqtSlot() |
2056 def newTab(self, link=None, requestData=None, addNextTo=None): |
2056 def newTab(self, link=None, addNextTo=None): |
2057 """ |
2057 """ |
2058 Public slot called to open a new web browser tab. |
2058 Public slot called to open a new web browser tab. |
2059 |
2059 |
2060 @param link file to be displayed in the new window (string or QUrl) |
2060 @param link file to be displayed in the new window (string or QUrl) |
2061 @param requestData page load request data (LoadRequest) |
|
2062 @param addNextTo reference to the browser to open the tab after |
2061 @param addNextTo reference to the browser to open the tab after |
2063 (HelpBrowser) |
2062 (HelpBrowser) |
2064 """ |
2063 """ |
2065 if addNextTo: |
2064 if addNextTo: |
2066 self.__tabWidget.newBrowserAfter(addNextTo, link, requestData) |
2065 self.__tabWidget.newBrowserAfter(addNextTo, link) |
2067 else: |
2066 else: |
2068 self.__tabWidget.newBrowser(link, requestData) |
2067 self.__tabWidget.newBrowser(link) |
2069 |
2068 |
2070 @pyqtSlot() |
2069 @pyqtSlot() |
2071 def newWindow(self, link=None): |
2070 def newWindow(self, link=None): |
2072 """ |
2071 """ |
2073 Public slot called to open a new web browser window. |
2072 Public slot called to open a new web browser window. |