310 def selectAll(self): |
310 def selectAll(self): |
311 """ |
311 """ |
312 Public slot to select all text. |
312 Public slot to select all text. |
313 """ |
313 """ |
314 self.triggerPageAction(QWebEnginePage.SelectAll) |
314 self.triggerPageAction(QWebEnginePage.SelectAll) |
|
315 |
|
316 def unselect(self): |
|
317 """ |
|
318 Public slot to clear the current selection. |
|
319 """ |
|
320 self.triggerPageAction(QWebEnginePage.Unselect) |
315 |
321 |
316 def isForwardAvailable(self): |
322 def isForwardAvailable(self): |
317 """ |
323 """ |
318 Public method to determine, if a forward move in history is possible. |
324 Public method to determine, if a forward move in history is possible. |
319 |
325 |
1598 |
1604 |
1599 @param windowType type of the requested window |
1605 @param windowType type of the requested window |
1600 (QWebEnginePage.WebWindowType) |
1606 (QWebEnginePage.WebWindowType) |
1601 @return reference to the created browser window (WebBrowserView) |
1607 @return reference to the created browser window (WebBrowserView) |
1602 """ |
1608 """ |
1603 self.__mw.newTab(addNextTo=self) |
1609 if windowType in [QWebEnginePage.WebBrowserTab, |
1604 return self.__mw.currentBrowser() |
1610 QWebEnginePage.WebDialog]: |
|
1611 return self.__mw.newTab(addNextTo=self) |
|
1612 elif windowType == QWebEnginePage.WebBrowserWindow: |
|
1613 return self.__mw.newWindow().currentBrowser() |
|
1614 else: |
|
1615 return self.__mw.newTab(addNextTo=self, background=True) |
1605 |
1616 |
1606 def preferencesChanged(self): |
1617 def preferencesChanged(self): |
1607 """ |
1618 """ |
1608 Public method to indicate a change of the settings. |
1619 Public method to indicate a change of the settings. |
1609 """ |
1620 """ |