Helpviewer/HelpWindow.py

changeset 3077
8d2e69e02e19
parent 3035
36e9f388958b
child 3080
6c0a430b19df
child 3160
209a07d7e401
equal deleted inserted replaced
3076:4002e6f10ec2 3077:8d2e69e02e19
1922 @param title new title (string) 1922 @param title new title (string)
1923 """ 1923 """
1924 self.historyManager().updateHistoryEntry( 1924 self.historyManager().updateHistoryEntry(
1925 browser.url().toString(), title) 1925 browser.url().toString(), title)
1926 1926
1927 def newTab(self, link=None, requestData=None): 1927 def newTab(self, link=None, requestData=None, addNextTo=None):
1928 """ 1928 """
1929 Public slot called to open a new help window tab. 1929 Public slot called to open a new help window tab.
1930 1930
1931 @param link file to be displayed in the new window (string or QUrl) 1931 @param link file to be displayed in the new window (string or QUrl)
1932 @param requestData tuple containing the request data (QNetworkRequest, 1932 @param requestData tuple containing the request data (QNetworkRequest,
1933 QNetworkAccessManager.Operation, QByteArray) 1933 QNetworkAccessManager.Operation, QByteArray)
1934 """ 1934 @param addNextTo reference to the browser to open the tab after
1935 self.tabWidget.newBrowser(link, requestData) 1935 (HelpBrowser)
1936 """
1937 if addNextTo:
1938 self.tabWidget.newBrowserAfter(addNextTo, link, requestData)
1939 else:
1940 self.tabWidget.newBrowser(link, requestData)
1936 1941
1937 def newWindow(self, link=None): 1942 def newWindow(self, link=None):
1938 """ 1943 """
1939 Public slot called to open a new help browser dialog. 1944 Public slot called to open a new help browser dialog.
1940 1945

eric ide

mercurial