mirror of
https://github.com/ankitects/anki.git
synced 2025-12-20 10:22:57 -05: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.front.setAcceptRichText(False)
|
||||||
self.tform.css.setAcceptRichText(False)
|
self.tform.css.setAcceptRichText(False)
|
||||||
self.tform.back.setAcceptRichText(False)
|
self.tform.back.setAcceptRichText(False)
|
||||||
tab_width = self.fontMetrics().width(" " * 4)
|
if qtminor < 10:
|
||||||
self.tform.front.setTabStopDistance(tab_width)
|
self.tform.front.setTabStopWidth(30)
|
||||||
self.tform.css.setTabStopDistance(tab_width)
|
self.tform.css.setTabStopWidth(30)
|
||||||
self.tform.back.setTabStopDistance(tab_width)
|
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
|
self.redrawing = False
|
||||||
|
|
||||||
def saveCard(self):
|
def saveCard(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue