Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgemail: utilize qtlib.getfont() for preview pane

Changeset 2ec2dca59aa0

Parent 7bda51334c1e

by Yuya Nishihara

Changes to one file · Browse files at 2ec2dca59aa0 Showing diff from parent 7bda51334c1e Diff from another changeset...

 
260
261
262
263
 
 
 
 
 
 
264
265
266
 
260
261
262
 
263
264
265
266
267
268
269
270
271
@@ -260,7 +260,12 @@
  w.setUtf8(True)   w.setReadOnly(True)   w.setMarginWidth(1, 0) # hide area for line numbers - w.setLexer(lexers.DiffLexerSelector().lexer()) + lex = lexers.DiffLexerSelector().lexer() + fh = qtlib.getfont(self._ui, 'fontdiff') + fh.changed.connect(lambda f: lex.setFont(f)) + # TODO: why cannot we connect directly, without lambda? + lex.setFont(fh.font()) + w.setLexer(lex)   # TODO: better way to setup diff lexer   initqsci(self._qui.preview_edit)