Ignore coverage of lines of old Qt versions

This commit is contained in:
Veronica Berglyd Olsen
2022-10-15 22:56:18 +02:00
parent 9c16b58325
commit 30661130ca
5 changed files with 7 additions and 18 deletions
+2 -2
View File
@@ -152,7 +152,7 @@ class GuiDocViewer(QTextBrowser):
# Refresh the tab stops
if self.mainConf.verQtValue >= 51000:
self.setTabStopDistance(self.mainConf.getTabWidth())
else:
else: # pragma: no cover
self.setTabStopWidth(self.mainConf.getTabWidth())
# If we have a document open, we should reload it in case the font changed
@@ -195,7 +195,7 @@ class GuiDocViewer(QTextBrowser):
# Refresh the tab stops
if self.mainConf.verQtValue >= 51000:
self.setTabStopDistance(self.mainConf.getTabWidth())
else:
else: # pragma: no cover
self.setTabStopWidth(self.mainConf.getTabWidth())
# Must be before setHtml