Use pixel caching on our level lines

history_view
Tyler Goodlet 2022-09-07 16:12:57 -04:00
parent 6b93eedcda
commit 2a06dc997f
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ class LevelLine(pg.InfiniteLine):
self._y_incr_mult = 1 / chart.linked.symbol.tick_size
self._right_end_sc: float = 0
# use px caching
self.setCacheMode(QtWidgets.QGraphicsItem.DeviceCoordinateCache)
def txt_offsets(self) -> tuple[int, int]:
return 0, 0