Ensure tests pass on hidpi

This commit is contained in:
Nyall Dawson 2020-04-09 14:32:45 +10:00
parent 3e7ebdc632
commit ed71c5a1b8

View File

@ -231,6 +231,9 @@ class TestQgsLegendPatchShape(unittest.TestCase):
def renderPatch(self, patch):
image = QImage(200, 200, QImage.Format_RGB32)
image.setDotsPerMeterX(96 / 25.4 * 1000)
image.setDotsPerMeterY(96 / 25.4 * 1000)
painter = QPainter()
painter.begin(image)