fix surface layer control layout
@@ -46,16 +46,18 @@ class QtSurfaceControls(QtBaseImageControls):
self.grid_layout.addWidget(self.opacitySlider, 0, 1)
self.grid_layout.addWidget(QLabel(trans._('contrast limits:')), 1, 0)
self.grid_layout.addWidget(self.contrastLimitsSlider, 1, 1)
- self.grid_layout.addWidget(QLabel(trans._('gamma:')), 2, 0)
- self.grid_layout.addWidget(self.gammaSlider, 2, 1)
- self.grid_layout.addWidget(QLabel(trans._('colormap:')), 3, 0)
- self.grid_layout.addLayout(colormap_layout, 3, 1)
- self.grid_layout.addWidget(QLabel(trans._('blending:')), 4, 0)
- self.grid_layout.addWidget(self.blendComboBox, 4, 1)
- self.grid_layout.addWidget(QLabel(trans._('shading:')), 5, 0)
- self.grid_layout.addWidget(self.shadingComboBox, 5, 1)
+ self.grid_layout.addWidget(QLabel(trans._('auto-contrast:')), 2, 0)
+ self.grid_layout.addWidget(self.autoScaleBar, 2, 1)
+ self.grid_layout.addWidget(QLabel(trans._('gamma:')), 3, 0)
+ self.grid_layout.addWidget(self.gammaSlider, 3, 1)
+ self.grid_layout.addWidget(QLabel(trans._('colormap:')), 4, 0)
+ self.grid_layout.addLayout(colormap_layout, 4, 1)
+ self.grid_layout.addWidget(QLabel(trans._('blending:')), 5, 0)
+ self.grid_layout.addWidget(self.blendComboBox, 5, 1)
+ self.grid_layout.addWidget(QLabel(trans._('shading:')), 6, 0)
+ self.grid_layout.addWidget(self.shadingComboBox, 6, 1)
- self.grid_layout.setRowStretch(6, 1)
+ self.grid_layout.setRowStretch(7, 1)
self.grid_layout.setColumnStretch(1, 1)
self.grid_layout.setSpacing(4)
