update a deprecated API call in clayout

This commit is contained in:
Damien Elmes 2021-10-05 11:02:18 +10:00
parent 974378f2be
commit 46a1cc575c

View File

@ -257,11 +257,8 @@ class CardLayout(QDialog):
self.current_editor_index = 0
self.tform.edit_area.setAcceptRichText(False)
self.tform.edit_area.setFont(QFont("Courier"))
if qtminor < 10:
self.tform.edit_area.setTabStopWidth(30)
else:
tab_width = self.fontMetrics().width(" " * 4)
self.tform.edit_area.setTabStopDistance(tab_width)
tab_width = self.fontMetrics().horizontalAdvance(" " * 4)
self.tform.edit_area.setTabStopDistance(tab_width)
widg = tform.search_edit
widg.setPlaceholderText("Search")