higher zValues for borders of RegionItem to move overlapping RegionItems

This commit is contained in:
Dominik Demuth 2023-07-12 18:31:29 +02:00
parent ef21d7c7f2
commit ac039c1b6d

View File

@ -383,6 +383,10 @@ class RegionItem(LinearRegionItem):
if not hasattr(self, '_bounds') and hasattr(self, '_boundingRectCache'):
self._bounds = self._boundingRectCache
for l in self.lines:
# higher z for borderlines improves chances that you can move it when multiple regions overlap
l.setZValue(self.zValue() + 1)
def setLogMode(self, xmode, _):
if self.logmode == xmode:
return