Merge pull request #592 from BlueGreenMagick/tabwidth

Set tab width to 4 spaces
This commit is contained in:
Damien Elmes 2020-04-29 18:32:40 +10:00 committed by GitHub
commit 913c268705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):