UI/Previewers/PreviewerHTML.py

changeset 4929
fcab21c80811
parent 4631
5c1a96925da4
child 4975
c71c0afee067
equal deleted inserted replaced
4926:f7ef43c73ae3 4929:fcab21c80811
206 self.__restoreScrollBarPositions) 206 self.__restoreScrollBarPositions)
207 else: 207 else:
208 self.previewView.page().loadFinished.connect( 208 self.previewView.page().loadFinished.connect(
209 self.__restoreScrollBarPositions) 209 self.__restoreScrollBarPositions)
210 self.previewView.setHtml(html, baseUrl=QUrl.fromLocalFile(filePath)) 210 self.previewView.setHtml(html, baseUrl=QUrl.fromLocalFile(filePath))
211 if self.__previewedEditor:
212 self.__previewedEditor.setFocus()
211 213
212 @pyqtSlot(str) 214 @pyqtSlot(str)
213 def on_previewView_titleChanged(self, title): 215 def on_previewView_titleChanged(self, title):
214 """ 216 """
215 Private slot to handle a change of the title. 217 Private slot to handle a change of the title.

eric ide

mercurial