Commit 3f63fee4 authored by Thomas Vincent's avatar Thomas Vincent
Browse files

Merge branch 'silx-0.13-deprecation' into 'master'

Avoid another silx v0.13 deprecation warning

See merge request !129
parents c55f69d7 b25a0b43
Pipeline #27130 passed with stages
in 21 minutes and 50 seconds
......@@ -366,7 +366,11 @@ class QSpaceView(Qt.QMainWindow):
self.__stackView.setKeepDataAspectRatio(True)
self.__stackView.getProfileToolbar().setVisible(False)
self.__stackView.getColorBarAction().setVisible(False)
self.__stackView.getPlot().getMaskAction().setVisible(False)
if silx_hexversion >= 0xd00d2: # silx >= v0.13.0b2
plot = self.__stackView.getPlotWidget()
else: # Backward compatibility silx <=0.12.0
plot = self.__stackView.getPlot()
plot.getMaskAction().setVisible(False)
self.__stackView.sigPlaneSelectionChanged.connect(
self.__updateStackViewROI)
self.__stackView.sigStackChanged.connect(self.__updateStackViewROI)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment