mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Set tab width to 4 spaces
setTabStopWidth is deprecated, and setTabStopDistance is preferred It's not entirely accurate however, which you can see when you compare 10 tabs and 40 spaces
This commit is contained in:
parent
00cf4fc585
commit
be6a5e2f13
1 changed files with 4 additions and 3 deletions
|
@ -307,9 +307,10 @@ Please create a new card type first."""
|
|||
self.tform.front.setAcceptRichText(False)
|
||||
self.tform.css.setAcceptRichText(False)
|
||||
self.tform.back.setAcceptRichText(False)
|
||||
self.tform.front.setTabStopWidth(30)
|
||||
self.tform.css.setTabStopWidth(30)
|
||||
self.tform.back.setTabStopWidth(30)
|
||||
tab_width = self.fontMetrics().width(" " * 4)
|
||||
self.tform.front.setTabStopDistance(tab_width)
|
||||
self.tform.css.setTabStopDistance(tab_width)
|
||||
self.tform.back.setTabStopDistance(tab_width)
|
||||
self.redrawing = False
|
||||
|
||||
def saveCard(self):
|
||||
|
|
Loading…
Reference in a new issue