forked from IPKM/nmreval
higher zValues for borders of RegionItem to move overlapping RegionItems
This commit is contained in:
parent
ef21d7c7f2
commit
ac039c1b6d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user