mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix card layout screen on qt 5.9 regression (#592)
This commit is contained in:
parent
9bb4a02e0a
commit
b932333246
1 changed files with 9 additions and 4 deletions
|
@ -308,10 +308,15 @@ Please create a new card type first."""
|
|||
self.tform.front.setAcceptRichText(False)
|
||||
self.tform.css.setAcceptRichText(False)
|
||||
self.tform.back.setAcceptRichText(False)
|
||||
tab_width = self.fontMetrics().width(" " * 4)
|
||||
self.tform.front.setTabStopDistance(tab_width)
|
||||
self.tform.css.setTabStopDistance(tab_width)
|
||||
self.tform.back.setTabStopDistance(tab_width)
|
||||
if qtminor < 10:
|
||||
self.tform.front.setTabStopWidth(30)
|
||||
self.tform.css.setTabStopWidth(30)
|
||||
self.tform.back.setTabStopWidth(30)
|
||||
else:
|
||||
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