1928 @param title new title (string) |
1928 @param title new title (string) |
1929 """ |
1929 """ |
1930 self.historyManager().updateHistoryEntry( |
1930 self.historyManager().updateHistoryEntry( |
1931 browser.url().toString(), title) |
1931 browser.url().toString(), title) |
1932 |
1932 |
1933 def newTab(self, link=None, requestData=None): |
1933 def newTab(self, link=None, requestData=None, addNextTo=None): |
1934 """ |
1934 """ |
1935 Public slot called to open a new help window tab. |
1935 Public slot called to open a new help window tab. |
1936 |
1936 |
1937 @param link file to be displayed in the new window (string or QUrl) |
1937 @param link file to be displayed in the new window (string or QUrl) |
1938 @param requestData tuple containing the request data (QNetworkRequest, |
1938 @param requestData tuple containing the request data (QNetworkRequest, |
1939 QNetworkAccessManager.Operation, QByteArray) |
1939 QNetworkAccessManager.Operation, QByteArray) |
1940 """ |
1940 @param addNextTo reference to the browser to open the tab after |
1941 self.tabWidget.newBrowser(link, requestData) |
1941 (HelpBrowser) |
|
1942 """ |
|
1943 if addNextTo: |
|
1944 self.tabWidget.newBrowserAfter(addNextTo, link, requestData) |
|
1945 else: |
|
1946 self.tabWidget.newBrowser(link, requestData) |
1942 |
1947 |
1943 def newWindow(self, link=None): |
1948 def newWindow(self, link=None): |
1944 """ |
1949 """ |
1945 Public slot called to open a new help browser dialog. |
1950 Public slot called to open a new help browser dialog. |
1946 |
1951 |