higher zValues for borders of RegionItem to move overlapping RegionItems
This commit is contained in:
@ -383,6 +383,10 @@ class RegionItem(LinearRegionItem):
|
|||||||
if not hasattr(self, '_bounds') and hasattr(self, '_boundingRectCache'):
|
if not hasattr(self, '_bounds') and hasattr(self, '_boundingRectCache'):
|
||||||
self._bounds = 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, _):
|
def setLogMode(self, xmode, _):
|
||||||
if self.logmode == xmode:
|
if self.logmode == xmode:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user