WebBrowser/WebBrowserWindow.py

branch
QtWebEngine
changeset 4731
67d861d9e492
parent 4728
0367675d783d
child 4732
5ac4fc1dfc20
equal deleted inserted replaced
4729:fc8d00860717 4731:67d861d9e492
538 )) 538 ))
539 if not self.__initShortcutsOnly: 539 if not self.__initShortcutsOnly:
540 self.newAct.triggered.connect(self.newWindow) 540 self.newAct.triggered.connect(self.newWindow)
541 self.__actions.append(self.newAct) 541 self.__actions.append(self.newAct)
542 542
543 # TODO: Private Window
544
543 self.openAct = E5Action( 545 self.openAct = E5Action(
544 self.tr('Open File'), 546 self.tr('Open File'),
545 UI.PixmapCache.getIcon("open.png"), 547 UI.PixmapCache.getIcon("open.png"),
546 self.tr('&Open File'), 548 self.tr('&Open File'),
547 QKeySequence(self.tr("Ctrl+O", "File|Open")), 549 QKeySequence(self.tr("Ctrl+O", "File|Open")),
2171 linkName = link 2173 linkName = link
2172 h = WebBrowserWindow(linkName, ".", self.parent(), "webbrowser", 2174 h = WebBrowserWindow(linkName, ".", self.parent(), "webbrowser",
2173 self.__fromEric) 2175 self.__fromEric)
2174 h.show() 2176 h.show()
2175 2177
2178 # TODO: Private Window
2179
2176 # TODO: check if this is still needed 2180 # TODO: check if this is still needed
2177 def previewer(self): 2181 def previewer(self):
2178 """ 2182 """
2179 Public method to get a reference to the previewer tab. 2183 Public method to get a reference to the previewer tab.
2180 2184
2562 ## """ 2566 ## """
2563 ## QWebSettings.globalSettings().setAttribute( 2567 ## QWebSettings.globalSettings().setAttribute(
2564 ## QWebSettings.ZoomTextOnly, textOnly) 2568 ## QWebSettings.ZoomTextOnly, textOnly)
2565 ## self.zoomTextOnlyChanged.emit(textOnly) 2569 ## self.zoomTextOnlyChanged.emit(textOnly)
2566 ## 2570 ##
2571 # TODO: Full Screen
2567 ## def __viewFullScreen(self): 2572 ## def __viewFullScreen(self):
2568 ## """ 2573 ## """
2569 ## Private slot called to toggle fullscreen mode. 2574 ## Private slot called to toggle fullscreen mode.
2570 ## """ 2575 ## """
2571 ## if self.__isFullScreen(): 2576 ## if self.__isFullScreen():

eric ide

mercurial